bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 1/1] regex: fix broken clang build


From: Bruno Haible
Subject: Re: [PATCH 1/1] regex: fix broken clang build
Date: Thu, 16 Jun 2022 23:31:53 +0200

Paul Eggert:
> What a mess this stuff is. Maybe it would be simpler to disable all -W 
> options by default under Clang.

That would be a bit extreme. Some of the clang warnings are as useful as
the corresponding GCC warnings. Some clang warnings signal problems for
which GCC does not have the corresponding detection logic (I mean,
the multithread/locking warnings).

But we can certainly add to the macro gl_CC_GNULIB_WARNINGS in
m4/gnulib-common.m4 some more of the pointless or useless clang warnings.
Although that would not help in Darren Kenny's case, since he is probably
seeing the warnings in code outside gnulib, that happens to
#include <regex.h>.

Bruno






reply via email to

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