Commit graph

9 commits

Author SHA1 Message Date
William S Fulton
11d77ef9ae various fixes to remove warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:10:06 +00:00
Marcelo Matus
ce680838a6 CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 01:14:49 +00:00
Marcelo Matus
65540f6632 remove more warnings, ICC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-17 21:46:44 +00:00
William S Fulton
d79daa4886 redefined typedefs ISO C++ fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-14 20:43:45 +00:00
William S Fulton
531719cebd Various warning fixes for Visual Studio 2003 C++ compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-01 22:24:24 +00:00
Lyle Johnson
aff4882c26 Added a %warnfilter to the redefined.i test case to suppress warning
message from Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:43:11 +00:00
William S Fulton
deee48b017 Fixes to link on Cygwin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5675 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 22:43:32 +00:00
Marcelo Matus
aa8b13473e Added the warning code
WARN_PARSE_REDUNDANT          322

similar to the g++ -Wredundant-decls flag.

This recovers the warnings that now are not been reported by
the original code

   WARN_PARSE_REDEFINED          302

Redundant example:

   int foo(int);
   int foo(int);

Redefined example:

   int foo(int);
   double foo(int);


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 08:16:53 +00:00
Marcelo Matus
587ecadac7 Fix for friend declarations, and other 'repeated' declarations.
Now, this doesn't generate warnings:

 class A; class B*;

 int foo(A*, B*);

 struct A {
   friend int foo(A*, B*);
 };

but this generates

 struct B {
   friend double foo(A*, B*);
 };

which is correct, since they have different return types.

See the redefined.i file for most cases where
repeated (but not redefined) declarations are
not generating warnings now, such as:

// no warning
#define REPEATED 1
#define REPEATED 1

// yes warning
#define REDEFINED 1
#define REDEFINED 2

this is following the C, C++ and preprocessor
standard behavior.

The function 'need_redefined_warn(..)' was added to
util.c, if some strange corner appears, and therefore,
the parser.y file doesn't need to be changed latter.

Also, the redefined warning format in parser.y
was changed, so now it respond to William's -Fmicrosoft
flag.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-15 03:16:40 +00:00