Re: [PATCH] c/71115 - Missing warning: excess elements in struct initializer

2016-05-19 Thread Jeff Law
On 05/18/2016 06:12 PM, Martin Sebor wrote: The bug points out that the following and similar invalid uses of NULL are not diagnosed. #include const char* a[1] = { "", NULL }; The attached patch implements the suggestion on the Diagnostics Guidelines Wiki to call

[PATCH] c/71115 - Missing warning: excess elements in struct initializer

2016-05-18 Thread Martin Sebor
The bug points out that the following and similar invalid uses of NULL are not diagnosed. #include const char* a[1] = { "", NULL }; The attached patch implements the suggestion on the Diagnostics Guidelines Wiki to call expansion_point_location_if_in_system_header to determine the