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 /plugins/common.h | |
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.
Diffstat (limited to 'plugins/common.h')
-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 { # define bindtextdomain(Domainname, Dirname) /* empty */ #endif -/* For non-GNU/non-clang compilers to ignore __attribute__ */ -#if !defined(__GNUC__) && !defined(__CLANG__) -# define __attribute__(noreturn) /* do nothing */ +/* For non-GNU compilers to ignore __attribute__ */ +#ifndef __GNUC__ +# define __attribute__(x) /* do nothing */ #endif #endif /* _COMMON_H_ */ |