Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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