summaryrefslogtreecommitdiffstats
path: root/plugins/common.h
diff options
context:
space:
mode:
authorRobin Sonefors <robin.sonefors@op5.com>2013-01-29 15:08:44 +0100
committerRobin Sonefors <robin.sonefors@op5.com>2013-01-29 15:30:04 +0100
commita20611d4357c3c3ebe0a62776a1642e7904c1410 (patch)
tree60a320d4a521bb3de4d556b618da0f17d3d05c0e /plugins/common.h
parentd87395ec3d4bec777ab92fc74c8370877171259f (diff)
downloadmonitoring-plugins-a20611d4357c3c3ebe0a62776a1642e7904c1410.tar.gz
check_snmp: Close potential for using uninitialized memory
This was reported by clang, and in order for it to understand attributes properly, I had to modify the macro that checks for non-gcc compilers. Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Diffstat (limited to 'plugins/common.h')
-rw-r--r--plugins/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/common.h b/plugins/common.h
index c0dc2f41..f024b2ae 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 compilers to ignore __attribute__ */ 211/* For non-GNU/non-clang compilers to ignore __attribute__ */
212#ifndef __GNUC__ 212#if !defined(__GNUC__) && !defined(__CLANG__)
213# define __attribute__(x) /* do nothing */ 213# define __attribute__(noreturn) /* do nothing */
214#endif 214#endif
215 215
216#endif /* _COMMON_H_ */ 216#endif /* _COMMON_H_ */