10020 cmd-crypto: macro expands to multiple statements

Review Request #1306 - Created Nov. 30, 2018 and submitted

Information
Toomas Soome
illumos-gate
10020
7ca0613...
Reviewers
general
gencert.c: In function 'gencert_pkcs11':
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:124:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_subject_altname(&signedCert, altcrit,
   ^~~~~~~~~
gencert.c:123:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (altname != NULL)
  ^~
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:128:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_ku(&signedCert, kucrit, kubits),
   ^~~~~~~~~
gencert.c:127:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (kubits != 0)
  ^~
gencert.c: In function 'gencert_file':
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:330:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_subject_altname(&signedCert, altcrit,
   ^~~~~~~~~
gencert.c:329:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (altname != NULL)
  ^~
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:334:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_ku(&signedCert, kucrit, kubits),
   ^~~~~~~~~
gencert.c:333:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (kubits != 0)
  ^~
gencert.c: In function 'gencert_nss':
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:482:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_subject_altname(&signedCert, altcrit,
   ^~~~~~~~~
gencert.c:481:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (altname != NULL)
  ^~
gencert.c:37:2: error: macro expands to multiple statements [-Werror=multistatement-macros]
  kmfrv = f; \
  ^~~~~
gencert.c:486:3: note: in expansion of macro 'SET_VALUE'
   SET_VALUE(kmf_set_cert_ku(&signedCert, kucrit, kubits),
   ^~~~~~~~~
gencert.c:485:2: note: some parts of macro expansion are not guarded by this 'if' clause
  if (kubits)
  ^~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Robert Mustacchi
C Fraire
Gergő Mihály Doma
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...