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]
Other format: [Raw text]

Re: [C/C++ PATCH] Implement -Wshift-negative-value (PR c/65179)


On Sat, 25 Apr 2015, Marek Polacek wrote:

> +		pedwarn (location, OPT_Wshift_negative_value,
> +			 "left shift of negative value");

Use of pedwarn is always suspect for something only undefined at runtime; 
it must not produce an error with -pedantic-errors in any context where a 
constant expression is not required.

-- 
Joseph S. Myers
joseph@codesourcery.com


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