Skip to content

Commit d97a2c8

Browse files
committed
add missing break to avoid fallthrough
1 parent 83b7681 commit d97a2c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ubuntu_pedantic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: cmake -D ADA_TESTING=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
3535
env:
3636
CXX: g++-12
37-
CXXFLAGS: -Werror -Wextra -Wno-unused-parameter
37+
CXXFLAGS: -Werror -Wextra -Wno-unused-parameter -Wimplicit-fallthrough
3838
- name: Build
3939
run: cmake --build build -j=4
4040
- name: Test

include/ada/url_pattern_helpers-inl.h

+1
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
10621062
if (parser.is_hash_prefix()) {
10631063
parser.change_state(State::HASH, 1);
10641064
}
1065+
break;
10651066
}
10661067
case State::HASH: {
10671068
// Do nothing

0 commit comments

Comments
 (0)