You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/08/20 02:31:00 UTC

[jira] [Commented] (PROTON-2268) Threadercizer causes warnings on BSD based platforms

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

ASF subversion and git services commented on PROTON-2268:
---------------------------------------------------------

Commit 11b53c905f9400b65d57ea0bd8aed71e80678a5e in qpid-proton's branch refs/heads/master from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=11b53c9 ]

PROTON-2268: Fix Threadercizer warning which fails to build on FreeBSD


> Threadercizer causes warnings on BSD based platforms
> ----------------------------------------------------
>
>                 Key: PROTON-2268
>                 URL: https://issues.apache.org/jira/browse/PROTON-2268
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.31.0
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Minor
>
> On FreeBSD and macOS the threadercizer test fails to compile or will give a warning because it tries to treat a {{phread_t}} as if it is an integer, but this is not guaranteed by the POSIX threading standard and only seems to be true on Linux.
> {noformat}
> [ 34%] Building C object c/tests/CMakeFiles/c-threaderciser.dir/threaderciser.c.o
> /Users/runner/work/1/s/c/tests/threaderciser.c:97:51: warning: format specifies type 'unsigned long' but the argument has type 'pthread_t _Nonnull' (aka 'struct _opaque_pthread_t *') [-Wformat]
>   i += assert_no_err(snprintf(i, end-i, "(%lx) ", pthread_self()));
>                                           ~~~     ^~~~~~~~~~~~~~
> /Applications/Xcode_11.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
>   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
>                                                              ^~~~~~~~~~~
> 1 warning generated.
> {noformat}



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

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