[nagiosplug] Partially revert "check_snmp: Close potential for ...

"Nagios Plugin Development" <[email protected]> Tue, 27 Aug 2013 16:51:15 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: 92fdab87b28f5e61c7188b52740c7c322b9ebd02
 Author: Holger Weiss <[email protected]>
   Date: Tue Aug 27 18:32:38 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=92fdab8

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.

---

 plugins/common.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/common.h b/plugins/common.h
index b49ad94..f135838 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_ */


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk