trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject git commit: Adding GNUC check for unused attribute
Date Tue, 11 Mar 2014 01:14:49 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 4611c511c -> 51fd97931


Adding GNUC check for unused attribute


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/51fd9793
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/51fd9793
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/51fd9793

Branch: refs/heads/master
Commit: 51fd979313d482d859e76b80274b9e743241d486
Parents: 4611c51
Author: Brian Geffon <briang@apache.org>
Authored: Mon Mar 10 18:14:42 2014 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Mon Mar 10 18:14:42 2014 -0700

----------------------------------------------------------------------
 lib/atscppapi/src/include/atscppapi/utils.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/51fd9793/lib/atscppapi/src/include/atscppapi/utils.h
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/include/atscppapi/utils.h b/lib/atscppapi/src/include/atscppapi/utils.h
index 035d217..c927f14 100644
--- a/lib/atscppapi/src/include/atscppapi/utils.h
+++ b/lib/atscppapi/src/include/atscppapi/utils.h
@@ -32,9 +32,11 @@
 #include <stdint.h>
 
 #ifndef ATSCPPAPI_UNUSED
+#ifdef __GNUC__
 #define ATSCPPAPI_UNUSED __attribute__ ((unused))
+#else
+#define ATSCPPAPI_UNUSED
 #endif
-
 namespace atscppapi {
 namespace utils {
 


Mime
View raw message