[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#75964: Switching the Emacs build to -Wswitch-enum in src/
From: |
Eli Zaretskii |
Subject: |
bug#75964: Switching the Emacs build to -Wswitch-enum in src/ |
Date: |
Thu, 06 Feb 2025 10:17:38 +0200 |
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Wed, 5 Feb 2025 14:20:12 -0800
> Cc: pipcet@protonmail.com, 75964@debbugs.gnu.org
>
> Paul Eggert <eggert@cs.ucla.edu> writes:
>
> >> I very much doubt these techniques will make our situation
> >> significantly better, if at all.
> >
> > Admittedly Emacs has more serious bugs than enum mismatches. However,
> > checking these mismatches can help find mistakes or help clarify code.
>
> We had Bug#75712, for example, which I believe Pip Cet found by enabling
> -Wswitch-enum. It would be nice to catch such bugs statically.
It IMO is okay to use special GCC switches for hunting hidden bugs,
but that doesn't mean we need to use those switches by default,
especially if that requires us to make problematic changes to our
code. Please don't forget that many people who track the development
branches are not themselves Emacs developers.
We could have a special non-default configure option for adding
"noisy" warning options; many projects do that.
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, (continued)
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Pip Cet, 2025/02/02
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/02
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/02
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/03
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Pip Cet, 2025/02/03
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/03
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/04
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/05
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/05
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Stefan Kangas, 2025/02/05
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/,
Eli Zaretskii <=
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/07
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/06
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/08
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Eli Zaretskii, 2025/02/09
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/10
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Pip Cet, 2025/02/05
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Paul Eggert, 2025/02/05
- bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Pip Cet, 2025/02/05
bug#75964: Switching the Emacs build to -Wswitch-enum in src/, Stefan Kangas, 2025/02/02