aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2022-04-19 19:16:29 -0700
committerMattias EngdegÄrd2022-04-20 14:58:55 +0200
commite6c2a2497d8cc8c38c816507681d5d529cfdbf2e (patch)
tree3ff17d68e2b4134d6f8962d3acebec7216b1ad9d /lib
parent91d4898d5cceddd80456b6ce57ce2c5392aa1281 (diff)
downloademacs-e6c2a2497d8cc8c38c816507681d5d529cfdbf2e.tar.gz
emacs-e6c2a2497d8cc8c38c816507681d5d529cfdbf2e.zip
Update from gnulib
(cherry picked from commit 992cf3cb675e074079341cc54c3b16d37a8b9ca8) This is a partial backport from master: it only includes the changes below. * lib/mini-gmp.c (gmp_assert_nocarry): Avoid many Clang unused-variable warnings when building with optimisation. * lib/verify.h (_GL_HAVE__STATIC_ASSERT): Modify condition for using _Static_assert to cope with older Apple builds of Clang exposing misleading compiler version numbers. See discussion starting at https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00779.html
Diffstat (limited to 'lib')
-rw-r--r--lib/mini-gmp.c1
-rw-r--r--lib/verify.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/mini-gmp.c b/lib/mini-gmp.c
index 8577b59ef6d..14cabd12311 100644
--- a/lib/mini-gmp.c
+++ b/lib/mini-gmp.c
@@ -90,6 +90,7 @@ see https://www.gnu.org/licenses/. */
90#define gmp_assert_nocarry(x) do { \ 90#define gmp_assert_nocarry(x) do { \
91 mp_limb_t __cy = (x); \ 91 mp_limb_t __cy = (x); \
92 assert (__cy == 0); \ 92 assert (__cy == 0); \
93 (void) (__cy); \
93 } while (0) 94 } while (0)
94 95
95#define gmp_clz(count, x) do { \ 96#define gmp_clz(count, x) do { \
diff --git a/lib/verify.h b/lib/verify.h
index 07b2f4866f2..c2d2a566706 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -34,7 +34,7 @@
34#ifndef __cplusplus 34#ifndef __cplusplus
35# if (201112L <= __STDC_VERSION__ \ 35# if (201112L <= __STDC_VERSION__ \
36 || (!defined __STRICT_ANSI__ \ 36 || (!defined __STRICT_ANSI__ \
37 && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 4 <= __clang_major__))) 37 && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 5 <= __clang_major__)))
38# define _GL_HAVE__STATIC_ASSERT 1 38# define _GL_HAVE__STATIC_ASSERT 1
39# endif 39# endif
40# if (202000L <= __STDC_VERSION__ \ 40# if (202000L <= __STDC_VERSION__ \