[openib-general] Re: Opensm - osm_sa_path_record.c - variable declaration
Roland Dreier
rolandd at cisco.com
Tue Sep 20 19:30:44 PDT 2005
Greg> Isn't there a gcc flag to convince it to give an error in
Greg> this case? If so, adding it to the OpenIB makefile would be
Greg> a good idea.
gcc 3.4 added -Wdeclaration-after-statement. However, older gcc
versions don't accept the option. In fact gcc 2.95 doesn't accept
declarations after statements.
In any case it takes at least a little autoconf magic to add the flag
only if the compiler being used accepts it.
- R.
More information about the general
mailing list