bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-verify.c: avoid -Wmissing-declarations warnings


From: Bruno Haible
Subject: Re: test-verify.c: avoid -Wmissing-declarations warnings
Date: Sat, 31 Oct 2020 19:09:14 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

Hi Bernhard,

In a gnulib testdir, I now see this warning:

In file included from ../../gltests/test-verify.c:22:0:
../../gltests/test-verify.c: In function ‘main’:
../../gltests/../gllib/verify.h:316:25: warning: ‘((unsigned char*)&s)[0]’ is 
used uninitialized in this function [-Wuninitialized]
 # define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
                         ^
../../gltests/test-verify.c:115:9: note: ‘s’ was declared here
   state s;
         ^

This is with gcc-5.4.0 and CPPFLAGS="-Wall".

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]