This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652

--- Comment #59 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Aug 18 10:28:03 2016
New Revision: 239566

URL: https://gcc.gnu.org/viewcvs?rev=239566&root=gcc&view=rev
Log:
        PR c/7652
gcc/cp/
        * call.c (add_builtin_candidate): Add gcc_fallthrough.
        * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.
        * parser.c (cp_parser_skip_to_end_of_statement): Likewise.
        (cp_parser_cache_defarg): Likewise.
libcpp/
        * pch.c (write_macdef): Add CPP_FALLTHRU.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/parser.c
    trunk/libcpp/ChangeLog
    trunk/libcpp/pch.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]