OK.
Jason
On Thu, Nov 28, 2013 at 07:04:43PM -0500, Jason Merrill wrote:
> On 11/28/2013 12:14 PM, Marek Polacek wrote:
> > t = fold_build2 (COMPOUND_EXPR, TREE_TYPE (t),
> >- ubsan_instrument_vla (input_location, t), t);
> >+ ubsan_instrument_vla
On 11/28/2013 12:14 PM, Marek Polacek wrote:
t = fold_build2 (COMPOUND_EXPR, TREE_TYPE (t),
- ubsan_instrument_vla (input_location, t), t);
+ ubsan_instrument_vla (input_location, t),
+ /* Cast to
We wrongly warned on instrumented VLAs that the size expression's
value is not used (with cc1plus only). Unfortunately, this hasn't been
detected before due to disabled warnings in the VLA tests. This patch
adds a (void) cast to suppress the warning as well as enables the
warnings in the VLA test