COMMON requires 4 bytes of padding at start

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Sep 21 21:45:00 GMT 2008


On Sun, Sep 21, 2008 at 10:54:55PM +0200, Tobias Burnus wrote:
> b) For the following
> 
> 
>               if (gfc_option.warn_align_commons)
>                 if (strcmp (common->name, BLANK_COMMON_NAME))
>                   gfc_warning ("Padding of %d bytes required before '%s' in "
> 
> 
> I get a warning that one should use "{ }", which stops compiling due to
> -Werror. Can you add the { } ?
> 

Why not collapse it into 

     if (gfc_option.warn_align_commons
         && strcmp (common->name, BLANK_COMMON_NAME))
       gfc_warning ("Padding of %d bytes required before '%s' in "

The gcc warning is bogus.

-- 
Steve



More information about the Fortran mailing list