Pacification of native compiler on OpenIndiana
* constness in ternary expressions * removal of OS_MAX_INTEGER * inclusion of dds/ddsrt/attributes.h everywhere DDS_EXPORT inline occurs * _POSIX_PTHREAD_SEMANTICS in ddsperf Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
c9f04ee5bd
commit
7190bb3d3e
6 changed files with 26 additions and 31 deletions
|
@ -17,6 +17,10 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "dds/export.h"
|
||||
|
||||
/* DDS_EXPORT inline i.c.w. __attributes__((visibility...)) and some compilers: */
|
||||
#include "dds/ddsrt/attributes.h"
|
||||
|
||||
#include "dds/ddsi/q_rtps.h"
|
||||
|
||||
#if defined (__cplusplus)
|
||||
|
|
|
@ -1714,7 +1714,10 @@ int builtins_dqueue_handler (const struct nn_rsample_info *sampleinfo, const str
|
|||
goto done_upd_deliv;
|
||||
}
|
||||
|
||||
timestamp = (sampleinfo->timestamp.v != NN_WCTIME_INVALID.v) ? sampleinfo->timestamp : now ();
|
||||
if (sampleinfo->timestamp.v != NN_WCTIME_INVALID.v)
|
||||
timestamp = sampleinfo->timestamp;
|
||||
else
|
||||
timestamp = now ();
|
||||
switch (srcguid.entityid.u)
|
||||
{
|
||||
case NN_ENTITYID_SPDP_BUILTIN_PARTICIPANT_WRITER:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue