diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-17 10:16:43 +0100 |
---|---|---|
committer | tonvoon <ton.voon@opsera.com> | 2010-06-23 13:30:34 +0000 |
commit | 18f6835edaf7d640a2c9e476cb1babdbdadbfd9b (patch) | |
tree | ae11f40e48dc34658445c99012726f32bfb45c56 /build-aux/warn-on-use.h | |
parent | f61412478ceb7c821793c8356b936f64066508bf (diff) | |
download | monitoring-plugins-18f6835edaf7d640a2c9e476cb1babdbdadbfd9b.tar.gz |
Added state retention APIs. Implemented for check_snmp with --rate option.
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
Diffstat (limited to 'build-aux/warn-on-use.h')
-rw-r--r-- | build-aux/warn-on-use.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/build-aux/warn-on-use.h b/build-aux/warn-on-use.h index 1cd5062d..171e5991 100644 --- a/build-aux/warn-on-use.h +++ b/build-aux/warn-on-use.h | |||
@@ -67,7 +67,10 @@ | |||
67 | /* A compiler attribute is available in gcc versions 4.3.0 and later. */ | 67 | /* A compiler attribute is available in gcc versions 4.3.0 and later. */ |
68 | # define _GL_WARN_ON_USE(function, message) \ | 68 | # define _GL_WARN_ON_USE(function, message) \ |
69 | extern __typeof__ (function) function __attribute__ ((__warning__ (message))) | 69 | extern __typeof__ (function) function __attribute__ ((__warning__ (message))) |
70 | 70 | # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | |
71 | /* Verify the existence of the function. */ | ||
72 | # define _GL_WARN_ON_USE(function, message) \ | ||
73 | extern __typeof__ (function) function | ||
71 | # else /* Unsupported. */ | 74 | # else /* Unsupported. */ |
72 | # define _GL_WARN_ON_USE(function, message) \ | 75 | # define _GL_WARN_ON_USE(function, message) \ |
73 | _GL_WARN_EXTERN_C int _gl_warn_on_use | 76 | _GL_WARN_EXTERN_C int _gl_warn_on_use |
@@ -85,6 +88,10 @@ _GL_WARN_EXTERN_C int _gl_warn_on_use | |||
85 | # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | 88 | # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ |
86 | extern rettype function parameters_and_attributes \ | 89 | extern rettype function parameters_and_attributes \ |
87 | __attribute__ ((__warning__ (msg))) | 90 | __attribute__ ((__warning__ (msg))) |
91 | # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
92 | /* Verify the existence of the function. */ | ||
93 | # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
94 | extern rettype function parameters_and_attributes | ||
88 | # else /* Unsupported. */ | 95 | # else /* Unsupported. */ |
89 | # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | 96 | # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ |
90 | _GL_WARN_EXTERN_C int _gl_warn_on_use | 97 | _GL_WARN_EXTERN_C int _gl_warn_on_use |