bug-gnulib
[Top][All Lists]
Advanced

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

Re: FreeBSD: Warnings about c-ctype macros used but marked unused


From: Tim Rühsen
Subject: Re: FreeBSD: Warnings about c-ctype macros used but marked unused
Date: Wed, 28 Aug 2019 16:19:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

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

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