quieten Sun Workshop compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f1cd2cc8f6
commit
8770d27b02
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
%apply char **STRING_OUT { char **string_ptr };
|
||||
|
||||
%{
|
||||
char *langs[] = { "Hungarian", "Afrikaans", "Norwegian", 0 };
|
||||
char *langs[] = { (char *)"Hungarian", (char *)"Afrikaans", (char *)"Norwegian", NULL };
|
||||
%}
|
||||
|
||||
%immutable languages; /* TODO: fix, because there is a problem with setters */
|
||||
|
|
@ -33,7 +33,7 @@ int check_animals(char **received) {
|
|||
}
|
||||
|
||||
char **get_names() {
|
||||
static char *values[] = { "Dave", "Mike", "Susan", "John", "Michelle", 0};
|
||||
static char *values[] = { (char *)"Dave", (char *)"Mike", (char *)"Susan", (char *)"John", (char *)"Michelle", NULL};
|
||||
return &values[0];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue