[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: manywarnings for C++
From: |
Bruno Haible |
Subject: |
Re: manywarnings for C++ |
Date: |
Tue, 21 Feb 2017 16:05:21 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-62-generic; KDE/5.18.0; x86_64; ; ) |
Hi Reuben,
> For example, would it be sensible to have a single spec file, with each
> row as follows:
>
> warning language-list comment
>
> i.e. the first and third columns as at present, and the second giving the
> languages for which the flag is used?
In my opinion
1) How to specify the set of options to avoid is orthogonal to the C vs C++
consideration.
2) I find the usage approach from
https://www.gnu.org/software/gnulib/manual/html_node/manywarnings.html
to be just as easy to use as a .spec file, and furthermore it is more
flexible:
- It allows to use different sets of warnings for clang than for gcc
(remember that clang disguises as gcc). You need a line such as
CC_BRAND=`LC_ALL=C $CC --version | sed -e '2,$d' -e 's/ .*//'` # either
gcc or clang
to distinguish them.
- It allows multiline descriptions why a warning is avoided.
Bruno