8200 cmd/lp: misleading-indentation

Review Request #494 - Created May 10, 2017 and submitted

Information
Toomas Soome
illumos-gate
8200
783d882...
Reviewers
general
do_printer.c:113:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (!oldp)
   ^~
do_printer.c:120:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if (p_add && add_paper_to_printer(p_add, p) == -1) {
    ^~
cc1: all warnings being treated as errors
netpr.c:372:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (tcp_port != NULL)
    ^~
netpr.c:374:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     syslog(LOG_DEBUG, "tcp_port %s",
     ^~~~~~
cc1: all warnings being treated as errors

  
Toomas Soome
Marcel Telka
Marcel Telka
Toomas Soome
Marcel Telka
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...