Hi Bruno,

On 8/28/19 4:09 PM, Bruno Haible wrote:
> Hi Tim,
> 
>> Compiling on FreeBSD 12 gives a warning per use of c_ macros, for example
>>
>> http_parse.c:187:10: warning: 'c_isblank' was marked unused but was used
>> [-Wused-but-marked-unused]
>>                 while (c_isblank(*s)) s++;
>>
>>
>> This is true also for c_isdigit, c_isspace, etc.
> 
> A bit more details, please:
>   - Which version of gcc or clang is this?
>   - Where does the option -Wused-but-marked-unused come from? Is it part
>     of -Wall, or did you or your package add it explicitly?

From config.log:

FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on
LLVM 6.0.0)
Target: x86_64-unknown-freebsd11.2
Thread model: posix
InstalledDir: /usr/bin

The option -Wused-but-marked-unused is indirectly activated by
-Weverything, which is set during the ./configure run (kind of a
manywarnings module). So it's not part of $CFLAGS or $CPPFLAGS but later
used as part of AM_CFLAGS.

I do not see that warning on Linux, with any version of clang (3.8, ...
9) or gcc (4.3, ..., 9.2). And I wonder why do the c_ macros are marked
UNUSED at all (I assume that gnulib does it for some reason) ?

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to