diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-27 18:32:38 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-27 18:32:38 +0200 |
commit | 92fdab87b28f5e61c7188b52740c7c322b9ebd02 (patch) | |
tree | 816123d85a9156439fbdf749e63e93212f05caf9 | |
parent | 1cbc73bc8b04962947afdead5e451c4e2318bda9 (diff) | |
download | monitoring-plugins-92fdab87b28f5e61c7188b52740c7c322b9ebd02.tar.gz |
Partially revert "check_snmp: Close potential for using uninitialized memory"
This reverts the changes to plugins/common.h applied by commit
a20611d4357c3c3ebe0a62776a1642e7904c1410.
- Clang defines __GNUC__.
- The new name of the __attribute__ parameter was misleading.
-rw-r--r-- | plugins/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/common.h b/plugins/common.h index b49ad945..f1358380 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -208,9 +208,9 @@ enum { | |||
208 | # define bindtextdomain(Domainname, Dirname) /* empty */ | 208 | # define bindtextdomain(Domainname, Dirname) /* empty */ |
209 | #endif | 209 | #endif |
210 | 210 | ||
211 | /* For non-GNU/non-clang compilers to ignore __attribute__ */ | 211 | /* For non-GNU compilers to ignore __attribute__ */ |
212 | #if !defined(__GNUC__) && !defined(__CLANG__) | 212 | #ifndef __GNUC__ |
213 | # define __attribute__(noreturn) /* do nothing */ | 213 | # define __attribute__(x) /* do nothing */ |
214 | #endif | 214 | #endif |
215 | 215 | ||
216 | #endif /* _COMMON_H_ */ | 216 | #endif /* _COMMON_H_ */ |