This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More on type qualifiers ignored on function return type


Brian Dessent wrote:
Jim Marshall wrote:

So the primary question is: is there a compiler switch we can use to
stop this specific warning from being displayed?

-Wno-return-type


<http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Warning-Options.html#index-Wreturn_002dtype-230>.

Brian


Brian thanks for the pointer. Wish it was a separate switch though as it would be nice to continue using the -Wreturn-type switch to prevent the other errors (return type defaults to int and returning without a value).


Thanks
-Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]