Skip to content

Instantly share code, notes, and snippets.

@davetcoleman
Created February 15, 2013 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davetcoleman/4961194 to your computer and use it in GitHub Desktop.
Save davetcoleman/4961194 to your computer and use it in GitHub Desktop.
Remove warning from actionlib
diff --git a/include/actionlib/client/simple_action_client.h b/include/actionlib/client/simple_action_client.h
index 653d51e..abce582 100644
--- a/include/actionlib/client/simple_action_client.h
+++ b/include/actionlib/client/simple_action_client.h
@@ -46,11 +46,12 @@
#include "actionlib/client/simple_client_goal_state.h"
#include "actionlib/client/terminal_state.h"
-
-#if defined(__GNUC__)
-#define DEPRECATED __attribute__((deprecated))
-#else
-#define DEPRECATED
+#ifndef DEPRECATED
+ #if defined(__GNUC__)
+ #define DEPRECATED __attribute__((deprecated))
+ #else
+ #define DEPRECATED
+ #endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment