Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
b8412aba
Verified
Commit
b8412aba
authored
Sep 22, 2023
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Meson: enable -Wold-style-cast warning when warning_level⩾2
parent
b117e2a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
meson.build
+1
-2
1 addition, 2 deletions
meson.build
with
1 addition
and
2 deletions
meson.build
+
1
−
2
View file @
b8412aba
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
# probably not in our current setup); the pkgconfig_define option of
# probably not in our current setup); the pkgconfig_define option of
# dep.get_variable() is unfortunately not helpful
# dep.get_variable() is unfortunately not helpful
# Close to https://github.com/mesonbuild/meson/issues/3606
# Close to https://github.com/mesonbuild/meson/issues/3606
# - add -Wold-style-cast C++ flag except when building flex-generated files
# (only when warning_level ⩾ 2)
# - add the possibility to customize the integration test names (with a new optional 'name' keyword in the dictionaries)
# - add the possibility to customize the integration test names (with a new optional 'name' keyword in the dictionaries)
# - Add an option to skip the removal of the temporary test directories, for debugging purposes
# - Add an option to skip the removal of the temporary test directories, for debugging purposes
# - See what to do with xvfb-run (see #1892). Maybe try to detect it from meson.build, and pass it optionally to the test driver script
# - See what to do with xvfb-run (see #1892). Maybe try to detect it from meson.build, and pass it optionally to the test driver script
...
@@ -24,6 +22,7 @@ project('dynare',
...
@@ -24,6 +22,7 @@ project('dynare',
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
if
get_option
(
'warning_level'
).
to_int
()
>=
2
add_global_arguments
(
'-Wold-style-cast'
,
language
:
'cpp'
)
add_global_arguments
(
'-Wimplicit-interface'
,
'-Wno-compare-reals'
,
language
:
'fortran'
)
add_global_arguments
(
'-Wimplicit-interface'
,
'-Wno-compare-reals'
,
language
:
'fortran'
)
endif
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment