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

Andrew Stitcher resolved PROTON-2272.
-------------------------------------
    Resolution: Fixed

> [c] Threadercizer build causes warnings and hence build failures on 32 bit 
> builds
> ---------------------------------------------------------------------------------
>
>                 Key: PROTON-2272
>                 URL: https://issues.apache.org/jira/browse/PROTON-2272
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.32.0
>            Reporter: Andrew Stitcher
>            Priority: Minor
>              Labels: release-notes
>             Fix For: proton-c-0.33.0
>
>
> When building threadercizer for a 32 bit architecture using the default 
> setting will cause a warning will be treated as an error:
> (this is from a build on Raspbian)
> {noformat}
> [1/5] Building C object 
> c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o
> FAILED: c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o 
> /usr/bin/cc  -I/home/andrew/Coding/qpid-proton/src/c/include 
> -I/home/andrew/Coding/qpid-proton/src/c/src -Ic/include -Ic/src -Ic/tests 
> -I/home/andrew/Coding/qpid-proton/src/tests/include -fvisibility=hidden -O2 
> -g -DNDEBUG    -Werror -Wall -pedantic-errors -Wstrict-prototypes -Wvla 
> -Wsign-compare -Wwrite-strings -std=c99 -MD -MT 
> c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o -MF 
> c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o.d -o 
> c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o   -c 
> /home/andrew/Coding/qpid-proton/src/c/tests/threaderciser.c
> /home/andrew/Coding/qpid-proton/src/c/tests/threaderciser.c: In function 
> ‘debug_impl’:
> /home/andrew/Coding/qpid-proton/src/c/tests/threaderciser.c:97:45: error: 
> format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has 
> type ‘unsigned int’ [-Werror=format=]
>    i += assert_no_err(snprintf(i, end-i, "(%lx) ", (uintptr_t) 
> pthread_self()));
>                                            ~~^     ~~~~~~~~~~~~~~~~~~~~~~~~~~
>                                            %x
> cc1: all warnings being treated as errors
> {noformat}
> This issue has already been fixed for 0.33.
> It has a good workaround in 0.32 by giving -DENABLE_WARNING_ERROR=off to 
> cmake. This should be release noted for 0.32



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to