You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2020/08/21 00:24:00 UTC
[jira] [Updated] (PROTON-2268) Threadercizer causes warnings on BSD
based platforms
[ https://issues.apache.org/jira/browse/PROTON-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Stitcher updated PROTON-2268:
------------------------------------
Fix Version/s: (was: proton-c-0.32.0)
proton-c-0.33.0
> 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
> Fix For: proton-c-0.33.0
>
>
> 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