summaryrefslogtreecommitdiff
path: root/lib/warn-on-use.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-12-21 15:36:16 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-12-21 15:37:30 -0800
commit4b7e73432cd07612e5225189e18696f755c8f954 (patch)
tree272c5a9f0e3fc33d68c151af90468af5ab2e96ae /lib/warn-on-use.h
parentf1668ef23c19a34a0e99506f7751c33c05f99179 (diff)
downloademacs-4b7e73432cd07612e5225189e18696f755c8f954.tar.gz
Update from gnulib
Diffstat (limited to 'lib/warn-on-use.h')
-rw-r--r--lib/warn-on-use.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/warn-on-use.h b/lib/warn-on-use.h
index 612937abb02..39842946160 100644
--- a/lib/warn-on-use.h
+++ b/lib/warn-on-use.h
@@ -84,20 +84,20 @@
# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
/* A compiler attribute is available in gcc versions 4.3.0 and later. */
# define _GL_WARN_ON_USE(function, message) \
-extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
+_GL_WARN_EXTERN_C __typeof__ (function) function __attribute__ ((__warning__ (message)))
# define _GL_WARN_ON_USE_ATTRIBUTE(message) \
__attribute__ ((__warning__ (message)))
# elif __clang_major__ >= 4
/* Another compiler attribute is available in clang. */
# define _GL_WARN_ON_USE(function, message) \
-extern __typeof__ (function) function \
+_GL_WARN_EXTERN_C __typeof__ (function) function \
__attribute__ ((__diagnose_if__ (1, message, "warning")))
# define _GL_WARN_ON_USE_ATTRIBUTE(message) \
__attribute__ ((__diagnose_if__ (1, message, "warning")))
# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
/* Verify the existence of the function. */
# define _GL_WARN_ON_USE(function, message) \
-extern __typeof__ (function) function
+_GL_WARN_EXTERN_C __typeof__ (function) function
# define _GL_WARN_ON_USE_ATTRIBUTE(message)
# else /* Unsupported. */
# define _GL_WARN_ON_USE(function, message) \