warning/error fixes for Visual Studio
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a5ff5c349f
commit
a0cb4442d7
6 changed files with 33 additions and 8 deletions
|
|
@ -1916,6 +1916,11 @@ SwigType_emit_type_table(File *f_forward, File *f_table) {
|
|||
Printf(table, " &_swigt_%s,\n", ki.item);
|
||||
Printf(cast_init, " _swigc_%s,\n", ki.item);
|
||||
}
|
||||
if (i==0) {
|
||||
/* empty arrays are not allowed by ISO C */
|
||||
Printf(table, " NULL\n");
|
||||
Printf(cast_init, " NULL\n");
|
||||
}
|
||||
|
||||
Delete(table_list);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue