Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
810862b4
Commit
810862b4
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Run Swig always with -Werror; disable dispensable warnings.
parent
580862dc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Wrap/swig/warnings.i
+8
-6
8 additions, 6 deletions
Wrap/swig/warnings.i
cmake/BornAgain/SwigLib.cmake
+5
-1
5 additions, 1 deletion
cmake/BornAgain/SwigLib.cmake
with
13 additions
and
7 deletions
Wrap/swig/warnings.i
+
8
−
6
View file @
810862b4
// unproblematic warnings, keep them permanently disabled:
#
pragma
SWIG
nowarn
=
314
// print conflicts with Python, renamed to _print
#
pragma
SWIG
nowarn
=
315
// nothing known about std::size_t
#
pragma
SWIG
nowarn
=
362
// operator=
#
pragma
SWIG
nowarn
=
389
// operator[]
#
pragma
SWIG
nowarn
=
473
// returning pointer in a director method (object ownership problem)
#
pragma
SWIG
nowarn
=
503
// operator<<
#
pragma
SWIG
nowarn
=
509
// overload ignored since reference=pointer
#
pragma
SWIG
nowarn
=
520
// shared_ptr not declared for entire hierarchy [stackoverflow 11380483]
#
pragma
SWIG
nowarn
=
362
// operator= ignored
#
pragma
SWIG
nowarn
=
389
// operator[] ignored, consider %extend
#
pragma
SWIG
nowarn
=
503
// operator= ignored, consider renaming to valid identifier
// questionable warnings, TODO: reinvestigate
#
pragma
SWIG
nowarn
=
473
// questionable return pointer
#
pragma
SWIG
nowarn
=
509
// overloaded method shadowed, effectively ignored
This diff is collapsed.
Click to expand it.
cmake/BornAgain/SwigLib.cmake
+
5
−
1
View file @
810862b4
...
...
@@ -27,7 +27,11 @@ function(SwigLib name lib TMP_DIR)
endforeach
()
list
(
APPEND swig_dependencies
${
AUTO_DIR
}
/doxygen
${
name
}
.i
)
set
(
SWIG_FLAGS
"-c++;-python;-o;
${
AUTO_DIR
}
/lib
${
lib
}
_wrap.cpp;-outdir;
${
TMP_DIR
}
"
# Run Swig.
# Please keep -Werror, in order not to overlook critical warnings.
# Dispensable warnings are disabled in Wrap/swig/warnigs.i.
# Joachim, oct20.
set
(
SWIG_FLAGS
"-c++;-python;-Werror;-o;
${
AUTO_DIR
}
/lib
${
lib
}
_wrap.cpp;-outdir;
${
TMP_DIR
}
"
";-I
${
CMAKE_SOURCE_DIR
}
;-I
${
CMAKE_BINARY_DIR
}
/inc"
)
add_custom_command
(
...
...
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