From: Bruno Haible Date: Tue, 29 Apr 2025 00:15:55 +0000 (+0200) Subject: build: Ignore -Wduplicated-branches warnings. X-Git-Tag: v0.25~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e87aaccabe4be2161f7192fdb96db954ea65fd07;p=thirdparty%2Fgettext.git build: Ignore -Wduplicated-branches warnings. * m4/more-warnings.m4 (gt_MORE_WARNINGS): Don't add the -Wduplicated-branches option. --- diff --git a/m4/more-warnings.m4 b/m4/more-warnings.m4 index 1a8afd9fe..fa2477402 100644 --- a/m4/more-warnings.m4 +++ b/m4/more-warnings.m4 @@ -1,6 +1,6 @@ # more-warnings.m4 -# serial 4 (gettext-0.24) -dnl Copyright (C) 2023-2024 Free Software Foundation, Inc. +# serial 5 (gettext-0.25) +dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -110,6 +110,10 @@ AS_HELP_STRING([[--disable-more-warnings]], [obey exactly the warning options sp dnl Unused parameters are frequent in functions that are meant to implement dnl a given function type. nw="$nw -Wunused-parameter" + dnl If/else statements with two identical branches (after constant + dnl expression evaluation) can occur, when the code uses platform-dependent + dnl constants. + nw="$nw -Wduplicated-branches" dnl dnl Next, the warnings that are generated with -O2: dnl This warning option frequently produces false alarms.