[ https://issues.apache.org/jira/browse/HAWQ-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15766791#comment-15766791 ]
Paul Guo commented on HAWQ-1230: -------------------------------- Also could remove macros below, -#ifndef POSSIBLE_UNUSED_VAR -#define POSSIBLE_UNUSED_VAR(x) ((void)x) -#endif - -#ifndef POSSIBLE_UNUSED_ARG -#define POSSIBLE_UNUSED_ARG(x) ((void)x) > Introduce macro __MAYBE_UNUSED to surpress "unused funtion" warnings. > --------------------------------------------------------------------- > > Key: HAWQ-1230 > URL: https://issues.apache.org/jira/browse/HAWQ-1230 > Project: Apache HAWQ > Issue Type: Bug > Reporter: Paul Guo > Assignee: Paul Guo > > Saw similar warning: > be-secure.c:323:1: warning: unused function 'report_commerror' > [-Wunused-function] > One of the reason is that the callers are not compiled with some > configuration options. > Add the macro for gcc attribute below to surpress these kind of warnings. > #define __MAYBE_UNUSED __attribute__((used)) -- This message was sent by Atlassian JIRA (v6.3.4#6332)