[openib-general] Re: Opensm - osm_sa_path_record.c - variable declaration

Greg Lindahl lindahl at pathscale.com
Tue Sep 20 19:14:58 PDT 2005


> Windows compiler does not enable declaration not in the beginning of
> the function, so I would
> like to have it changed. 
> We can either move the declaration to the beginning of the function,
> or add {} around the declaration.

Isn't there a gcc flag to convince it to give an error in this case? If
so, adding it to the OpenIB makefile would be a good idea.

-- greg




More information about the general mailing list