summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/timespec.h
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-07-20 02:20:29 +0530
committerNiels de Vos <ndevos@redhat.com>2017-07-22 10:38:06 +0000
commit6b89b8cee79aa54ded4c34d3209c54ed674b1364 (patch)
treeb729dcbe3725ac725baf95195f04333e2f5bc0e8 /libglusterfs/src/timespec.h
parent4a85a221c92f422dedde62832e6cd6e66cae2722 (diff)
crypt: fix evaluation of args to macro
GCC 7 warns about the following crypt.c:3685:31: warning: ?: using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Wint-in-bool-context] local->op_ret < 0 ? -1 : 0, ../../../../libglusterfs/src/stack.h:342:36: note: in definition of macro ‘STACK_UNWIND_STRICT’ } else if (op_ret == 0) { \ ^~~~~~ } This is because args to pre-processor are lazily evaluated and operator precedence for == is higher than ?: Change-Id: I2c2ffb08bc3731ad0e17796047e01cb10771dbcf Updates: #259 Reported-by: Raghavendra Talur <rtalur@redhat.com> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: https://review.gluster.org/17827 Reviewed-by: Prashanth Pai <ppai@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra Talur <rtalur@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/timespec.h')
0 files changed, 0 insertions, 0 deletions