Skip to content
Snippets Groups Projects
Verified Commit fe73d74f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Enable -Wold-style-cast warning

parent 38042226
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,10 @@ project('dynare-preprocessor', 'cpp', ...@@ -8,6 +8,10 @@ project('dynare-preprocessor', 'cpp',
add_global_arguments('-DPACKAGE_VERSION="' + meson.project_version() + '"', language : 'cpp') add_global_arguments('-DPACKAGE_VERSION="' + meson.project_version() + '"', language : 'cpp')
if get_option('warning_level').to_int() >= 2
add_global_arguments('-Wold-style-cast', language : 'cpp')
endif
cpp_compiler = meson.get_compiler('cpp') cpp_compiler = meson.get_compiler('cpp')
subdir('src') subdir('src')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment