Project

General

Profile

Actions

Bug #8200

closed

cmd/lp: misleading-indentation

Added by Toomas Soome over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-05-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Building with gcc 6:

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
Actions

Also available in: Atom PDF