This is the mail archive of the gcc-patches@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]

Re: PATCH: long long constants and -Wno-long-long



  In message <35DDBE9E.5485@cs.bris.ac.uk>you write:
  > This is a multi-part message in MIME format.
  > 
  > --------------47D247A73B7
  > Content-Type: text/plain; charset=us-ascii
  > Content-Transfer-Encoding: 7bit
  > 
  > Hi,
  > Currently both gcc and g++ warn about long long constants when in -ansi
  > -pedantic mode, even when the -Wno-long-long flag is given. This does
  > not appear to be the expected behaviour. -Wno-long-long explicitly
  > permits variables of type long long, even in pedantic mode. Therefore I
  > think the same flag should allow long long literals too. Attached is a
  > patch to both c-lex.c and cp/lex.c to fix the problem for both C and
  > C++. Here is a test case, (suitable for both C and C++)
  > compile with
I think this is wrong.  If I'm in pedantic mode, I want to know about
*everything* that is not 100% by the book.   I'm not aware of any case
where a -Wno-* flag disables a pedantic warning/error.

jeff


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