]> Savannah Git Hosting - gnulib.git/commitdiff
stddef-h: Silence autoconf warnings introduced in previous commit.
authorCollin Funk <collin.funk1@gmail.com>
Wed, 9 Apr 2025 04:20:39 +0000 (21:20 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 9 Apr 2025 04:20:39 +0000 (21:20 -0700)
* m4/stddef_h.m4 (gl_STDDEF_H): Use AC_LANG_SOURCE inside call to
AC_COMPILE_IFELSE.

ChangeLog
m4/stddef_h.m4

index cf3e040ada511793a42566a7c938fccc23173a39..f213c4a4f9b6f17325af9e8a2cc0befce15c9fde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-08  Collin Funk  <collin.funk1@gmail.com>
+
+       stddef-h: Silence autoconf warnings introduced in previous commit.
+       * m4/stddef_h.m4 (gl_STDDEF_H): Use AC_LANG_SOURCE inside call to
+       AC_COMPILE_IFELSE.
+
 2025-04-08  Bruno Haible  <bruno@clisp.org>
 
        stddef-h: Make a configure test work with upcoming GCC 15.
index 13aff50e71b004b0b7b80c2214b8c5dbaab459eb..a6bc62431432611d9e27c82cc685937fe37f99f8 100644 (file)
@@ -1,5 +1,5 @@
 # stddef_h.m4
-# serial 18
+# serial 19
 dnl Copyright (C) 2009-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -94,11 +94,12 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
   dnl affects GCC 13 and 14.
   AC_CACHE_CHECK([whether <stddef.h> is idempotent],
     [gl_cv_stddef_idempotent],
-    [AC_COMPILE_IFELSE([
+    [AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+       [[
        #if __GNUC__ == 13 || __GNUC__ == 14
         #error "bug 114870 is present"
        #endif
-       ],
+       ]])],
        [gl_cv_stddef_idempotent="guessing yes"],
        [gl_cv_stddef_idempotent="guessing no"])
     ])