This is the mail archive of the gcc@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: gcc (lack of) return type warnings


On 14/02/07, Andreas Schwab <schwab@suse.de> wrote:
Tobias Pflug <tobias.pflug@exorbyte.com> writes:

> That's not desirable is it ?

If you are concerned, you are free to use -Wreturn-type.  There are many
types of undefined behaviour that are not warned by default.


And Wreturn-type is enabled by -Wall. Moreover, there are many types of undefined behaviour that are not warned at all!

Gabriel is working on a new -Wundefined option (PR 30334), so if you
find any of those, or you think that this should be warned
independently of -Wreturn-type, please add a comment to the PR.
Perhaps -Wundefined could be enabled by default like -Woverflow.

Cheers,

Manuel.


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