Various warning fixes for .NET 2003 cl /W4 to work barring one warning and for gcc -ansi -Wall -pedantic to be warning free:
const fixes and function prototype declarations matching the definition etc git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0f991243d3
commit
8377edf02a
24 changed files with 77 additions and 63 deletions
|
|
@ -269,9 +269,10 @@ void start_inline(char *text, int line) {
|
|||
* Inserts a comment into a documentation entry.
|
||||
**************************************************************/
|
||||
|
||||
/*
|
||||
void yycomment(char *a, int b, int c) {
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* skip_balanced()
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ static int dirprot_mode = 0;
|
|||
|
||||
/* Called by the parser (yyparse) when an error is found.*/
|
||||
static void yyerror (const char *e) {
|
||||
(void)e;
|
||||
}
|
||||
|
||||
static Node *new_node(const String_or_char *tag) {
|
||||
|
|
@ -2970,7 +2971,7 @@ cpp_namespace_decl : NAMESPACE idcolon LBRACE {
|
|||
| NAMESPACE LBRACE {
|
||||
Hash *h;
|
||||
$1 = Swig_symbol_current();
|
||||
h = Swig_symbol_clookup("",0);
|
||||
h = Swig_symbol_clookup((char *)"",0);
|
||||
if (h && (Strcmp(nodeType(h),"namespace") == 0)) {
|
||||
Swig_symbol_setscope(Getattr(h,"symtab"));
|
||||
} else {
|
||||
|
|
@ -4786,7 +4787,7 @@ stringnum : string {
|
|||
$$ = $1;
|
||||
}
|
||||
| exprnum {
|
||||
$$ = $1.val;
|
||||
$$ = Char($1.val);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue