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/SWIG@5639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cbcb2216b8
commit
b0df32dd1a
24 changed files with 77 additions and 63 deletions
|
|
@ -453,7 +453,7 @@ void
|
|||
SwigType_del_qualifier(SwigType *t) {
|
||||
char *c = Char(t);
|
||||
assert(strncmp(c,"q(",2) == 0);
|
||||
Delslice(t,0,element_size(t));
|
||||
Delslice(t,0,element_size(Char(t)));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -586,7 +586,7 @@ SwigType_array_getdim(SwigType *t, int n) {
|
|||
}
|
||||
|
||||
/* Replace nth array dimension */
|
||||
void SwigType_array_setdim(SwigType *t, int n, String_or_char *rep) {
|
||||
void SwigType_array_setdim(SwigType *t, int n, const String_or_char *rep) {
|
||||
String *result = 0;
|
||||
char temp;
|
||||
char *start;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue