Repository: incubator-hawq
Updated Branches:
  refs/heads/master e6d972dd3 -> 8e8194cda


HAWQ-1182. Add Macro for unused argument and variable.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/8e8194cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/8e8194cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/8e8194cd

Branch: refs/heads/master
Commit: 8e8194cdafc05262d668440e9834fd368347bb49
Parents: e6d972d
Author: Paul Guo <paul...@gmail.com>
Authored: Thu Dec 1 17:01:03 2016 +0800
Committer: Paul Guo <paul...@gmail.com>
Committed: Fri Dec 2 10:10:14 2016 +0800

----------------------------------------------------------------------
 src/include/postgres.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8e8194cd/src/include/postgres.h
----------------------------------------------------------------------
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 1138f20..9391d6b 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -513,6 +513,18 @@ extern void gp_set_thread_sigmasks(void);
 
 extern void OnMoveOutCGroupForQE(void);
 
+#ifndef POSSIBLE_UNUSED_VAR
+#define POSSIBLE_UNUSED_VAR(x) ((void)x)
+#endif
+
+#ifndef POSSIBLE_UNUSED_ARG
+#define POSSIBLE_UNUSED_ARG(x) ((void)x)
+#endif
+
+#ifndef UNUSED_ARG
+#define UNUSED_ARG(x)                  ((void)x)
+#endif
+
 #ifdef __cplusplus
 }   /* extern "C" */
 #endif

Reply via email to