diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-10-15 14:56:39 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-10-15 14:58:26 +0100 |
commit | d58eb86821d2da4e97bf0a1f729fbf8172edfa98 (patch) | |
tree | 45d472a9d6d5c82ebf3e7f53454d445927850b7a | |
parent | e622a708d22049ba5565bf32b8c64b4245c3906f (diff) | |
download | swig-d58eb86821d2da4e97bf0a1f729fbf8172edfa98.tar.gz |
Testcase warning fixv4.1.0-beta1
Workaround for seemingly bogus warning: ‘<unnamed>[0]’ may be used uninitialized [-Wmaybe-uninitialized]
-rw-r--r-- | Examples/test-suite/cpp11_initializer_list.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/cpp11_initializer_list.i b/Examples/test-suite/cpp11_initializer_list.i index c1646248c..7e86cc025 100644 --- a/Examples/test-suite/cpp11_initializer_list.i +++ b/Examples/test-suite/cpp11_initializer_list.i @@ -39,7 +39,7 @@ class C { public: C(std::initializer_list<const char *> init) { for (auto& val : init) - joined += val; + joined = joined + val; } C() {} const char * get_joined_string() { |