]> Savannah Git Hosting - gnulib.git/commit
Add ability to emit user-defined warnings and errors with clang.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Aug 2020 12:51:56 +0000 (14:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Aug 2020 12:51:56 +0000 (14:51 +0200)
commit94e462dba2d39c73858d855d528f2d86253de498
tree9c50b3d0f820a99e0d0acbc2b5e05fe42b469764
parent90cc47f28487c90cecfb312c808a0710dcfbf114
Add ability to emit user-defined warnings and errors with clang.

* m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
_GL_ATTRIBUTE_WARNING using an attribute for clang.
* lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
_GL_WARN_ON_USE_CXX): Define using an attribute for clang.
* lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
attribute for clang.
ChangeLog
lib/cdefs.h
lib/warn-on-use.h
m4/gnulib-common.m4