hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Guo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1230) Introduce macro __MAYBE_UNUSED_FUNC to surpress "unused funtion" warnings.
Date Wed, 21 Dec 2016 11:01:58 GMT
Paul Guo created HAWQ-1230:
------------------------------

             Summary: Introduce macro __MAYBE_UNUSED_FUNC 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: Ed Espino


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_FUNC __attribute__((used))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message