Project

General

Profile

Bug #8189

dns-sd: misleading-indentation

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

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build with gcc 6:

dns-sd.c: In function 'addrinfo_reply':
dns-sd.c:1157:9: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
         if (!if_indextoname(s6->sin6_scope_id, if_name))
         ^~
dns-sd.c:1159:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             snprintf(addr, sizeof(addr), "%02X%02X:%02X%02X:%02X%02X:%02X%02X:%02X%02X:%02X%02X:%02X%02X:%02X%02X%%%s",
             ^~~~~~~~
cc1: all warnings being treated as errors
*** Error code 1

History

#1

Updated by Electric Monk over 2 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 985cc36c07a787e0cb720fcf2fab565aa2a77590

commit  985cc36c07a787e0cb720fcf2fab565aa2a77590
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-11T16:16:34.000Z

    8189 dns-sd: misleading-indentation
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF