Go to the documentation of this file.
64 #ifndef _GL_WARN_ON_USE
66 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
68 # define _GL_WARN_ON_USE(function, message) \
69 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
70 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
72 # define _GL_WARN_ON_USE(function, message) \
73 extern __typeof__ (function) function
75 # define _GL_WARN_ON_USE(function, message) \
76 _GL_WARN_EXTERN_C int _gl_warn_on_use
86 #ifndef _GL_WARN_ON_USE_CXX
87 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
88 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
89 extern rettype function parameters_and_attributes \
90 __attribute__ ((__warning__ (msg)))
91 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
93 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
94 extern rettype function parameters_and_attributes
96 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
97 _GL_WARN_EXTERN_C int _gl_warn_on_use
103 #ifndef _GL_WARN_EXTERN_C
104 # if defined __cplusplus
105 # define _GL_WARN_EXTERN_C extern "C"
107 # define _GL_WARN_EXTERN_C extern