[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warnings compiling Emacs 22 on amd64

From: Richard Stallman
Subject: Re: warnings compiling Emacs 22 on amd64
Date: Tue, 16 Jan 2007 00:16:54 -0500

I think we should demand some way to turn off the warning in specific
places.  Does GCC have a feature to turn off warnings in a specific
piece of code?  I don't remember.  It would be a good feature to have.

However, a specific feature just for this kind of warning would also
be useful.  I have an idea for what it could look like: an extra cast.

      if ((int)(short)foo > (int)SHRT_MAX || (int)(short)foo < (int)SHRT_MIN)

(short) would be a way of saying "yes I know this is a short", and
this could suppress the warning.

What do you think of that feature?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]