8846 mpi: right-hand operand of comma expression has no effect

Review Request #772 - Created Nov. 21, 2017 and discarded

Information
Toomas Soome
illumos-gate
8846
Reviewers
general
In file included from /code/illumos-gate/usr/src/common/mpi/mpi.c:52:0:
/code/illumos-gate/usr/src/common/mpi/mpi.c: In function 's_mp_fixup_reciprocal':
/code/illumos-gate/usr/src/common/mpi/mpi-priv.h:303:71: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 (s_mpv_mul_d_add_prop(MP_DIGITS(a), MP_USED(a), b, MP_DIGITS(c) + off), MP_OKAY)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/code/illumos-gate/usr/src/common/mpi/mpi.c:2208:5: note: in expansion of macro 's_mp_mul_d_add_offset'
     s_mp_mul_d_add_offset(p, v, x, ix); /* x += p * v * (RADIX ** ix) */
     ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  
Andrew Stormont
Yuri Pankov
Gary Mills
Yuri Pankov
Toomas Soome
Review request changed

Status: Discarded

Loading...