[ 
https://issues.apache.org/jira/browse/PROTON-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15738101#comment-15738101
 ] 

Jiri Danek commented on PROTON-1375:
------------------------------------

{noformat}
[ 93%] Building C object 
proton-c/src/tests/CMakeFiles/c-object-tests.dir/object.c.o
/qpid-proton-fuzz/proton-c/src/tests/object.c:60:16: error: passing an object 
that undergoes default argument promotion to 'va_start' has undefined behavior 
[-Werror,-Wvarargs]
  va_start(ap, load_factor);
               ^
/qpid-proton-fuzz/proton-c/src/tests/object.c:53:51: note: parameter of type 
'float' is declared here
static pn_map_t *build_map(size_t capacity, float load_factor, ...)
                                                  ^
1 error generated.
{noformat}

> Compile without warnings under clang 4.0
> ----------------------------------------
>
>                 Key: PROTON-1375
>                 URL: https://issues.apache.org/jira/browse/PROTON-1375
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>            Reporter: Jiri Danek
>            Assignee: Andrew Stitcher
>            Priority: Minor
>             Fix For: 0.14.0
>
>
> A new warning in clang "implicit conversion increases floating-point 
> precision: 'float' to 'double' [-Werror,-Wdouble-promotion]" trips up on some 
> c++ binding code. We should fix this.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to