Commit graph

18,701 commits

Author SHA1 Message Date
Vadim Zeitlin
e546dfd856 Remove unused Swig_warn() function.
This was removed in master by 1e8fa8fee0 but
somehow left here.
2015-02-16 23:50:12 +01:00
Vadim Zeitlin
300ccce46c Another merge with master.
Change Doxygen error codes to start at 740 instead of at 720 as the latter was
taken by Scilab in the meanwhile.

Resolve conflicts in autodoc_runme.py once again.
2015-02-16 23:46:39 +01:00
Olly Betts
9842bada7c Fix typo 2015-02-15 18:56:02 +13:00
Simon Marchetto
4b2ccd2892 scilab: fix compilation error on Windows 2015-02-13 12:07:27 +01:00
William S Fulton
ec4b711d70 Merge branch 'besser82-bugfix/build-on-s390-arch'
* besser82-bugfix/build-on-s390-arch:
  Fix build on S390(x)-architecture
2015-02-11 23:55:16 +00:00
William S Fulton
60aecaba58 Restore some incorrectly commented out lines in .travis.yml 2015-02-11 23:50:29 +00:00
William S Fulton
f8491f8ab0 Merge branch 'clang-warning-fixes'
* clang-warning-fixes:
  Correct Examples makefile for guile
  Suppress clang warning in testcase
  preproc_constants warning suppression when using clang
  Warning suppression in li_std_vector_extra testcase for clang
  preproc_constants warning suppression when using clang
  Modify preproc testcase to remove clang warning
  Rename test warning suppressions when using clang
  primitive_types testcase improvement
2015-02-11 23:44:20 +00:00
William S Fulton
37bd50ddf9 Guile - fix generated code for static const char member variables when defined and declared inline. 2015-02-11 23:34:23 +00:00
William S Fulton
2947b711d9 Warning fixes in Go cdata library
GCC warnings -Wpointer-to-int-cast and -Wdeclaration-after-statement
2015-02-11 23:34:16 +00:00
William S Fulton
1ef899a57b Merge branch 'stricter-warnings'
* stricter-warnings:
  Go changes for wrappers to compile as ISO C90
  Scilab typecheck typemaps fix for C90
  No error for one Javascript node warning
  Warning fix in testcase for Javascript node
  nested_extend_c testcase fix when compiled by C++ target languages
  Temporarily remove -Werror for Scilab testing
  C90 fixes for Javascript JSC
  There are a couple of testcases that aren't compliant and supression via pragmas doesn't work for gcc < 4.8
  Warning suppression change
  Scilab typemap fixes for C89
  compiler warning suppression correction in testcase
  Suppress pedantic warnings in C# testcases
  Suppress pedantic warnings in testcases
  Pedantic warning fix in testcase
  pedantic warning fix for D wrappers
  Travis testing to use testflags.py for setting CFLAGS and CXXFLAGS
  Add travis build for error-declaration-after-statement branch
2015-02-11 23:33:26 +00:00
William S Fulton
e3a8ee1927 Go changes for wrappers to compile as ISO C90
Fixes:
ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
2015-02-11 23:32:46 +00:00
William S Fulton
4e86210e74 Scilab typecheck typemaps fix for C90
Fix mix of mixed declarations and code.
Also redo these typemaps so that the SWIG preprocessor comments don't appear
in the generated code.
2015-02-11 23:32:45 +00:00
William S Fulton
7b8d1a18a6 No error for one Javascript node warning
until overload_rename testcase is fixed for -Werror=unused-function
2015-02-11 23:32:45 +00:00
William S Fulton
ec9e347a07 Warning fix in testcase for Javascript node
Fix warning when using node to compile Javascript wrappers:
warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
2015-02-11 23:32:45 +00:00
William S Fulton
ed084f30f2 nested_extend_c testcase fix when compiled by C++ target languages
Javascript v8 and node compiles the wrappers as C++, fix this warning:
anonymous type with no linkage used to declare variable ‘<anonymous struct> THING’ with linkage
2015-02-11 23:32:45 +00:00
William S Fulton
213058de01 Temporarily remove -Werror for Scilab testing
Until STL container wrappers are fixed.
2015-02-11 23:32:45 +00:00
William S Fulton
59ff3e6a3a C90 fixes for Javascript JSC 2015-02-11 23:32:45 +00:00
William S Fulton
9e56ae10cf There are a couple of testcases that aren't compliant and supression via
pragmas doesn't work for gcc < 4.8

No languages can work with -pedantic in the test-suite
2015-02-11 23:32:44 +00:00
William S Fulton
a73a783fcd Warning suppression change
Earlier gcc (4.7) will warn about unknown warning pragmas!
-Wpedantic suppression is only available in 4.8 and later
2015-02-11 23:32:29 +00:00
William S Fulton
0236435c48 Scilab typemap fixes for C89 2015-02-11 23:24:40 +00:00
William S Fulton
9402f14393 compiler warning suppression correction in testcase 2015-02-11 23:24:40 +00:00
William S Fulton
3a10bba9ee Suppress pedantic warnings in C# testcases 2015-02-11 23:24:40 +00:00
William S Fulton
ec1eac5b72 Suppress pedantic warnings in testcases 2015-02-11 23:24:40 +00:00
William S Fulton
a4ba9528b4 Pedantic warning fix in testcase 2015-02-11 23:24:39 +00:00
William S Fulton
ef75735e9b pedantic warning fix for D wrappers 2015-02-11 23:24:39 +00:00
William S Fulton
3d34b369fa Travis testing to use testflags.py for setting CFLAGS and CXXFLAGS
Added flags include -Wreturn-type and -Wdeclaration-after-statement to
prevent mixed declaration and code and missing return statements which
other compilers require.
2015-02-11 23:21:25 +00:00
William S Fulton
c5409c28f6 Add travis build for error-declaration-after-statement branch 2015-02-11 23:05:20 +00:00
Jitka Plesnikova
60f2640087 Fix build on S390(x)-architecture 2015-02-11 22:26:00 +01:00
Olly Betts
57e3bf72c6 Merge pull request #335 from besser82/bugfix/apple_deprecated_macros
Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework
2015-02-12 10:24:51 +13:00
William S Fulton
c84838fded Correct Examples makefile for guile
C++ testcases were not rebuilding
2015-02-11 19:49:21 +00:00
William S Fulton
74f392ce9a Suppress clang warning in testcase
For Octave compiling preproc C test as C++ code:
Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-11 19:29:39 +00:00
William S Fulton
5ba14168f7 preproc_constants warning suppression when using clang 2015-02-11 19:25:22 +00:00
Björn Esser
4490f19dcc Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework 2015-02-10 16:40:56 +01:00
Ian Lance Taylor
1863b191bf [Go] Refactor some functions to make it easier to move to a new
approach for generating Go interfaces.  No functional changes.
2015-02-09 11:21:58 -08:00
Ian Lance Taylor
0a021a938e [Go] Remove all generated calls to _swig_makegostring, as it will no
longer as of Go 1.5.  In Go 1.5 or later user calls to
_swig_makegostring will fail at link time.

Instead, use goout and godirectorin typemaps to allocate strings in Go
code.

Change the Go typemaps support to ignore empty strings, so that we can
define empty strings for regular types so that %apply will override
the definitions for string types.

Fix the gccgo code to wrap SwigCgoCallback around all godirectorin
typemaps.

Add a few newlines after typemap code so that the typemaps don't have
to include them.
2015-02-05 10:15:37 -08:00
Ian Lance Taylor
603e3b49b3 Merge branch 'master' of git://github.com/swig/swig 2015-02-04 16:09:51 -08:00
Ian Lance Taylor
2562c1eb41 [Go] Remove all calls to _swig_goallocate in the Go runtime, except
for the one from _swig_makegostring.  _swig_goallocate can not work
with the future Go 1.5 release.  When using Go 1.5 attempts to call
_swig_goallocate will fail at link time.
2015-02-04 16:08:44 -08:00
William S Fulton
2f22e9c889 Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
William S Fulton
a33eb5a34a Merge pull request #323 from wolski/patch-1
add @SuppressWarnings("unused") to constructors generated using SWIG_JAVABODY_TYPEWRAPPER macro
2015-02-04 22:43:21 +00:00
Ian Lance Taylor
2752d78ce6 [Go] Use a unique name for the wrapper functions, since they are
publicly visible.  This permits linking together different SWIG
wrappers in the same program if they wrap the same function.  The
unique name is generated by hashing the .swig file.
2015-02-04 13:18:00 -08:00
Witold Wolski
70cccf38fd add @SuppressWarnings("unused") to constructors generated using SWIG_JAVABODY_TYPEWRAPPER macro 2015-02-04 10:12:37 +01:00
Ian Lance Taylor
96134c65a8 Change Go test case to compile with current compiler.
Recent changes caused this to give an error about an unused variable.
2015-02-03 13:55:41 -08:00
William S Fulton
5c1558917b Warning suppression in li_std_vector_extra testcase for clang 2015-02-03 19:39:32 +00:00
William S Fulton
a831f39096 preproc_constants warning suppression when using clang
Suppresses:
  warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-03 19:28:45 +00:00
William S Fulton
fd80e8d1e0 Modify preproc testcase to remove clang warning
Fix to get rid of:
warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
2015-02-03 18:41:20 +00:00
William S Fulton
29127cf014 Rename test warning suppressions when using clang
Suppresses:
warning: conversion function converting 'Space::ABC' to itself will never be used
2015-02-03 08:02:35 +00:00
William S Fulton
a5a86d2cc5 primitive_types testcase improvement
clang compiler highlighted that array comparisons are always true
2015-02-03 07:34:00 +00:00
William S Fulton
7c2ed7eae5 Python html doc cosmetic tweaks
[skip ci]
2015-02-02 20:00:07 +00:00
William S Fulton
76d813f321 Python director documentation correction
Fixes #https://github.com/swig/www/issues/2
[skip ci]
2015-02-02 19:52:07 +00:00
William S Fulton
7c3eca368b Add Scilab to ANNOUNCE
[skip ci]
2015-02-01 01:05:34 +00:00