10020 cmd-crypto: macro expands to multiple statements

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

tsoome
illumos-gate
10020
7ca0613...
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


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
rm
  1. Ship It!
  2. 
      
seeemef@mac.com
  1. Ship It!
  2. 
      
domag02
  1. 
      
  2. usr/src/cmd/cmd-crypto/pktool/gencert.c (Diff revision 1)
     
     
    Indentation level?
  3. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...