8842 libmail: right-hand operand of comma expression has no effect

Review Request #768 - Created Nov. 21, 2017 and submitted

Information
Toomas Soome
illumos-gate
8842
434f44b...
Reviewers
general
../common/s_string.c: In function 's_tok':
../inc/s_string.h:60:44: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define s_restart(s) ((s)->ptr = (s)->base , (s))
                      ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../common/s_string.c:293:3: note: in expansion of macro 's_restart'
   s_restart(to);
   ^~~~~~~~~
cc1: all warnings being treated as errors

  
Toomas Soome
Yuri Pankov
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...