]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
fix AC_CHECK_HEADER_STDBOOL regression
authorTodd C. Miller <Todd.Miller@sudo.ws>
Mon, 26 Dec 2022 17:35:39 +0000 (10:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Dec 2022 18:10:34 +0000 (10:10 -0800)
Commit 6dcecb780a69bd208088d666b299e92aa7ae7e80 "Port
AC_CHECK_HEADER_STDBOOL to C23" causes AC_CHECK_HEADER_STDBOOL to
always fail, even on systems with a conforming stdbool.h.

There is no longer an 'a' variable so it should not be referenced
in the return statement.

Copyright-paperwork-exempt: yes

lib/autoconf/headers.m4

index c5acd16e64930b570830eb1ff765c51a30421aad..ccb1bf4b560672c338b991661420e21a054a898d 100644 (file)
@@ -639,7 +639,7 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
 
              /* Refer to every declared value, so they cannot be
                 discarded as unused.  */
-             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
+             return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
                      + !l + !m + !n + !o + !p + !pp + !ps);
            ]])],
         [ac_cv_header_stdbool_h=yes],