[PATCH] Fixing warnings revealed by gcc release build
Dmitri Gribenko
gribozavr at gmail.com
Wed Jan 30 08:24:12 PST 2013
On Wed, Jan 30, 2013 at 6:22 PM, Nico Weber <thakis at chromium.org> wrote:
> On Wed, Jan 30, 2013 at 7:29 AM, Vane, Edwin <edwin.vane at intel.com> wrote:
>> Dmitri wrote:
>>> If this is the only false positive, I think it is worth working around the warning.
>>
>> This is indeed the only instance of this empty {} warning bug in the gcc build.
>
> There will likely be more in the future.
>
> The clang bots should catch the problems detected by this warning
> reliably without false positives, right?
Not now. This warning is off by default in Clang:
def warn_missing_field_initializers : Warning<
"missing field '%0' initializer">,
InGroup<MissingFieldInitializers>, DefaultIgnore;
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list