Fixes for warnings issued by clang
This commit is contained in:
parent
52858d5353
commit
99231457db
2 changed files with 0 additions and 21 deletions
|
|
@ -106,7 +106,6 @@ private:
|
|||
File *f_wrappers;
|
||||
File *f_init;
|
||||
File *f_initbeforefunc;
|
||||
String *PrefixPlusUnderscore;
|
||||
String *s_cmd_tab; // table of command names
|
||||
String *s_var_tab; // table of global variables
|
||||
String *s_const_tab; // table of global constants
|
||||
|
|
@ -150,7 +149,6 @@ public:
|
|||
f_wrappers(0),
|
||||
f_init(0),
|
||||
f_initbeforefunc(0),
|
||||
PrefixPlusUnderscore(0),
|
||||
s_cmd_tab(0),
|
||||
s_var_tab(0),
|
||||
s_const_tab(0),
|
||||
|
|
|
|||
|
|
@ -204,9 +204,6 @@ private:
|
|||
String *proxy_class_name;
|
||||
String *variable_name; //Name of a variable being wrapped
|
||||
String *variable_type; //Type of this variable
|
||||
String *enumeration_name; //Name of the current enumeration type
|
||||
Hash *enumeration_items; //and its members
|
||||
int enumeration_max;
|
||||
Hash *enumeration_coll; //Collection of all enumerations.
|
||||
/* The items are nodes with members:
|
||||
"items" - hash of with key 'itemname' and content 'itemvalue'
|
||||
|
|
@ -268,9 +265,6 @@ MODULA3():
|
|||
proxy_class_name(NULL),
|
||||
variable_name(NULL),
|
||||
variable_type(NULL),
|
||||
enumeration_name(NULL),
|
||||
enumeration_items(NULL),
|
||||
enumeration_max(0),
|
||||
enumeration_coll(NULL),
|
||||
constant_values(NULL),
|
||||
constantfilename(NULL),
|
||||
|
|
@ -1784,19 +1778,6 @@ MODULA3():
|
|||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
void generateEnumerationItem(const String *name, const String *value, int numvalue) {
|
||||
String *oldsymname = Getattr(enumeration_items, value);
|
||||
if (oldsymname != NIL) {
|
||||
Swig_warning(WARN_MODULA3_BAD_ENUMERATION, input_file, line_number, "The value <%s> is already assigned to <%s>.\n", value, oldsymname);
|
||||
}
|
||||
Setattr(enumeration_items, value, name);
|
||||
if (enumeration_max < numvalue) {
|
||||
enumeration_max = numvalue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void emitEnumeration(File *file, String *name, Node *n) {
|
||||
Printf(file, "%s = {", name);
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue