Project

General

Profile

Bug #9168

libsldap: this statement may fall through

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-02-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Issue found by gcc 7 build:

    ../common/ns_config.c:3712:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
         if (*(cp+1) == '\0') {
            ^
    ../common/ns_config.c:3715:4: note: here
        default:
        ^~~~~~~

    ../common/ns_standalone.c: In function '_filter_gethostbyaddr_r':
    ../common/ns_standalone.c:432:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
       dbop  = NSS_DBOP_IPNODES_BYADDR;
    ../common/ns_standalone.c:433:2: note: here
      default:
      ^~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk over 1 year ago

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

git commit a17ca6b197105110096f6f9375dbb5d492999d3a

commit  a17ca6b197105110096f6f9375dbb5d492999d3a
Author: Toomas Soome <tsoome@me.com>
Date:   2018-02-27T01:42:43.000Z

    9168 libsldap: this statement may fall through
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Approved by: Gordon Ross <gwr@nexenta.com>

Also available in: Atom PDF