[Top][All Lists]

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

Re: gcc/g++-warning.spec: remove -Wswitch-enum?

From: Reuben Thomas
Subject: Re: gcc/g++-warning.spec: remove -Wswitch-enum?
Date: Sun, 27 May 2018 09:15:19 +0100

On 27 May 2018 at 09:13, Paul Eggert <address@hidden> wrote:
For what it's worth, Emacs configure.ac disables -Wswitch-default (too many warnings) and -Wswitch (since -Wall implies -Wswitch, and the Emacs folks want to shorten the command line).  Coreutils configure.ac disables both -Wswitch-enum (unnecessary, since Gnulib also disables it) and -Wswitch-default.

With this and your comment in mind, how about if we add -Wswitch-default to build-aux/gcc-warning.spec? It doesn't seem to be of much use in practice.

​I find them useful and switch them on, but given that others disagree, I like your suggestion as it makes things consistent, and less likely to confuse those who share my taste.


reply via email to

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