Compiler warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-23 20:44:52 +00:00
commit b9ef74ebb1
3 changed files with 6 additions and 5 deletions

View file

@ -29,6 +29,7 @@ void Wrapper_virtual_elimination_mode_set(int flag) {
/* Helper function to assist with abstract class checking.
This is a major hack. Sorry. */
extern "C" {
static String *search_decl = 0; /* Declarator being searched */
static int check_implemented(Node *n) {
String *local_decl;
@ -54,7 +55,7 @@ static int check_implemented(Node *n) {
}
return 0;
}
}
class Allocate : public Dispatcher {
Node *inclass;

View file

@ -1919,8 +1919,8 @@ CHICKEN::singleSearch(const char *typemap, char *argname,
SwigType *searchClass)
{
String *tm;
char *source = "$input";
char *target = "$1";
char *source = (char*)"$input";
char *target = (char*)"$1";
/* search for search-class typemap */
SwigType *type = Copy(searchClass);
SwigType_add_pointer(type);

View file

@ -94,10 +94,10 @@ public:
indent_level += 2;
}
void close_paren(bool need_newline = false)
void close_paren(bool neednewline = false)
{
hanging_parens++;
if (need_newline)
if (neednewline)
print_lazy_whitespace();
indent_level -= 2;
}