[GitHub] incubator-hawq pull request #1031: HAWQ-1182. Add Macro for unused argument ...
Github user paul-guo- closed the pull request at: https://github.com/apache/incubator-hawq/pull/1031 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1031: HAWQ-1182. Add Macro for unused argument ...
Github user paul-guo- commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1031#discussion_r90576041 --- Diff: 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) --- End diff -- It is because the tab stop shown on this page is 8, while that in hawq 4. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1031: HAWQ-1182. Add Macro for unused argument ...
Github user xunzhang commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1031#discussion_r90413490 --- Diff: 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) --- End diff -- ..indent --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1031: HAWQ-1182. Add Macro for unused argument ...
GitHub user paul-guo- opened a pull request: https://github.com/apache/incubator-hawq/pull/1031 HAWQ-1182. Add Macro for unused argument and variable. You can merge this pull request into a Git repository by running: $ git pull https://github.com/paul-guo-/incubator-hawq build Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/1031.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1031 commit a670199ba7d44802edc022f45baddf1850e6986f Author: Paul GuoDate: 2016-12-01T09:01:03Z HAWQ-1182. Add Macro for unused argument and variable. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---