William S Fulton
3cda507e57
Fix initializer lists used with -keyword or compactdefaultargs option
...
Remove casts to local variables that have initial values taken from the
default arguments being wrapped. This is for the default case, that is,
for all types, except references.
This fixes handling of parameters with default arguments that are initializer
lists by removing a cast to the initializer.
For wrapping parameter X x = {}, the generated code previously would have
contained:
X arg2 = (X) {};
Now it is:
X arg2 = {};
Closes #1851
2024-11-04 23:21:25 +00:00
Olly Betts
0b4496a735
Fix testsuite SWIG warnings; enable SWIG -Werror
...
SWIG/mzscheme (aka racket) is excluded for now as it currently has a lot
of testsuite warnings and is slated for removal in 4.4.0 anyway.
Closes #3034
2024-10-22 10:30:52 +13:00
William S Fulton
f44153069b
Ocaml test-suite 'passes' with c++11 testing now
...
Test c++17 on Github Actions to try keep it passing when
configure detects g++ can test c++17.
2022-03-27 13:50:30 +01:00
William S Fulton
35e24ebd66
Testcase warning fix for gcc-9
...
warning: returning reference to temporary [-Wreturn-local-addr]
2019-07-09 08:12:05 +01:00
William S Fulton
95e8643d70
Rename func to funk in tests to avoid Go keyword problems
2017-06-16 19:24:48 +01:00
William S Fulton
6a7cd97fe9
Fix R function pointer wrappers containing lvalue and rvalue reference parameters
2017-06-16 07:41:05 +01:00
William S Fulton
be63f73e33
Fix c++ compiler warnings in c++11 testcases
2017-06-03 18:37:05 +01:00
William S Fulton
5a282f3ac3
c++11 test case fixes
2015-07-10 21:50:35 +01:00
William S Fulton
1514e19efb
Test-suite fixes for c++11 compilation by g++-5.1
2015-07-06 20:07:23 +01:00
William S Fulton
738cc36aab
Rename all C++0x to C++11 and cpp0x to cpp11
2013-10-07 20:37:00 +01:00