]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty: Fix -Wimplicit-fallthrough warnings.
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2016 23:55:01 +0000 (23:55 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2016 23:55:01 +0000 (23:55 +0000)
commit421955dbd4fce54a7ec02761f3ece17e5b02d903
tree3df95a30e4d33af6c4197800347e9b803d1b2f2d
parentc27242cff2b61598fecfb791e9910154b0056305
libiberty: Fix -Wimplicit-fallthrough warnings.

Adjust some comments, add some explicit fall through comments or explicit
returns where necessary to not get implicit-fallthrough warnings.

All fall throughs were deliberate. In one case I added an explicit return
false for clarity instead of falling through a default case (that also
would return false).

libiberty/ChangeLog:

       * cplus-dem.c (demangle_signature): Move fall through comment.
       (demangle_fund_type): Add fall through comment between 'G' and 'I'.
       * hashtab.c (iterative_hash): Add fall through comments.
       * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
       (byte_re_match_2_internal): Add Fall through comment after jump_n.
       Change "Note fall through" to "Fall through".
       (common_op_match_null_string_p): Return false after set_number_at
       instead of fall through.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241864 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/cplus-dem.c
libiberty/hashtab.c
libiberty/regex.c