summaryrefslogtreecommitdiff
path: root/Source/Modules/python.cxx
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-09-20 15:04:51 +1200
committerOlly Betts <olly@survex.com>2021-09-20 15:04:51 +1200
commit561a1d843d5877ec06265a6dbc96eefef5d0a945 (patch)
treeb1e753c484f6045c7804e982a1fdf0aa52445dc1 /Source/Modules/python.cxx
parent45ebd33698e79c7b0bfb9448b1cbb13f1a425a80 (diff)
downloadswig-561a1d843d5877ec06265a6dbc96eefef5d0a945.tar.gz
Fix ODR violations
Detected by compiling with GCC flags `-flto -Wodr`.
Diffstat (limited to 'Source/Modules/python.cxx')
-rw-r--r--Source/Modules/python.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx
index 6bc7ef737..7d618635e 100644
--- a/Source/Modules/python.cxx
+++ b/Source/Modules/python.cxx
@@ -93,6 +93,7 @@ static int nortti = 0;
static int relativeimport = 0;
/* flags for the make_autodoc function */
+namespace {
enum autodoc_t {
AUTODOC_CLASS,
AUTODOC_CTOR,
@@ -103,7 +104,7 @@ enum autodoc_t {
AUTODOC_CONST,
AUTODOC_VAR
};
-
+}
static const char *usage1 = "\
Python Options (available with -python)\n\