[ 
https://issues.apache.org/jira/browse/HAWQ-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Guo updated HAWQ-1423:
---------------------------
    Summary: cmock framework does not recognize __MAYBE_UNUSED.  (was: Build 
error when make unittest-check on MacOS)

> cmock framework does not recognize __MAYBE_UNUSED.
> --------------------------------------------------
>
>                 Key: HAWQ-1423
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1423
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Build
>            Reporter: Ming LI
>            Assignee: Ed Espino
>             Fix For: backlog
>
>
> This bug only exists on MacOS.
> Reproduce Steps: 
> {code}
> 1. ./configure 
> 2. make -j8 
> 3. cd src/backend
> 4. make unittest-check
> {code}
> Build log:
> {code}
> ../../../../../src/test/unit/mock/backend/libpq/be-secure_mock.c:174:2: 
> error: void function 'report_commerror'
>       should not return a value [-Wreturn-type]
>         return (__MAYBE_UNUSED) mock();
>         ^      ~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> make[4]: *** 
> [../../../../../src/test/unit/mock/backend/libpq/be-secure_mock.o] Error 1
> make[3]: *** [mockup-phony] Error 2
> make[2]: *** [unittest-check] Error 2
> make[1]: *** [unittest-check] Error 2
> make: *** [unittest-check] Error 2
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to