Skip to content

Commit

Permalink
libnixf: make -Werror=implicit-fallthrough per target
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Jan 11, 2024
1 parent 6979e81 commit 70ebeec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion libnixf/lib/Parse/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ libnixfParse = library('nixfParse',
'Parser.cpp',
include_directories: libnixfParse_inc,
dependencies: libnixfParse_deps,
install: true
install: true,
cpp_args: [ '-Werror=implicit-fallthrough' ]
)

pkgconfig.generate(name: 'libnixfParse',
Expand Down
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ cpp = meson.get_compiler('cpp')
add_project_arguments([
'-I' + meson.project_build_root(),
cpp.get_supported_arguments(
'-Werror=documentation',
'-Werror=implicit-fallthrough'
'-Werror=documentation'
),
], language: 'cpp')

Expand Down

0 comments on commit 70ebeec

Please sign in to comment.