Resolve -Wstrict-prototypes warnings with clang-15
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
This commit is contained in:
parent
4dd285fad7
commit
6c4010e442
15 changed files with 34 additions and 34 deletions
|
|
@ -43,7 +43,7 @@ extern "C" {
|
|||
extern void scanner_clear_rename(void);
|
||||
extern void scanner_set_location(String *file, int line);
|
||||
extern void scanner_set_main_input_file(String *file);
|
||||
extern String *scanner_get_main_input_file();
|
||||
extern String *scanner_get_main_input_file(void);
|
||||
extern void Swig_cparse_follow_locators(int);
|
||||
extern void start_inline(char *, int);
|
||||
extern String *scanner_ccode;
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ void Swig_cparse_cplusplusout(int v) {
|
|||
* Initialize buffers
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
void scanner_init() {
|
||||
void scanner_init(void) {
|
||||
scan = NewScanner();
|
||||
Scanner_idstart(scan,"%");
|
||||
scan_init = 1;
|
||||
|
|
@ -528,11 +528,11 @@ void scanner_set_location(String *file, int line) {
|
|||
Scanner_set_location(scan,file,line-1);
|
||||
}
|
||||
|
||||
void scanner_check_typedef() {
|
||||
void scanner_check_typedef(void) {
|
||||
check_typedef = 1;
|
||||
}
|
||||
|
||||
void scanner_ignore_typedef() {
|
||||
void scanner_ignore_typedef(void) {
|
||||
check_typedef = 0;
|
||||
}
|
||||
|
||||
|
|
@ -540,7 +540,7 @@ void scanner_last_id(int x) {
|
|||
last_id = x;
|
||||
}
|
||||
|
||||
void scanner_clear_rename() {
|
||||
void scanner_clear_rename(void) {
|
||||
rename_active = 0;
|
||||
}
|
||||
|
||||
|
|
@ -554,7 +554,7 @@ void scanner_set_main_input_file(String *file) {
|
|||
main_input_file = file;
|
||||
}
|
||||
|
||||
String *scanner_get_main_input_file() {
|
||||
String *scanner_get_main_input_file(void) {
|
||||
return main_input_file;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
* Externals
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
int yyparse();
|
||||
int yyparse(void);
|
||||
|
||||
/* NEW Variables */
|
||||
|
||||
|
|
@ -349,7 +349,7 @@ static String *make_name(Node *n, String *name,SwigType *decl) {
|
|||
}
|
||||
|
||||
/* Generate an unnamed identifier */
|
||||
static String *make_unnamed() {
|
||||
static String *make_unnamed(void) {
|
||||
unnamed++;
|
||||
return NewStringf("$unnamed%d$",unnamed);
|
||||
}
|
||||
|
|
@ -874,7 +874,7 @@ static void add_typedef_name(Node *n, Node *declnode, String *oldName, Symtab *c
|
|||
|
||||
/* If the class name is qualified. We need to create or lookup namespace entries */
|
||||
|
||||
static Symtab *set_scope_to_global() {
|
||||
static Symtab *set_scope_to_global(void) {
|
||||
Symtab *symtab = Swig_symbol_global_scope();
|
||||
Swig_symbol_setscope(symtab);
|
||||
return symtab;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ static int template_debug = 0;
|
|||
|
||||
const char *baselists[3];
|
||||
|
||||
void SwigType_template_init() {
|
||||
void SwigType_template_init(void) {
|
||||
baselists[0] = "baselist";
|
||||
baselists[1] = "protectedbaselist";
|
||||
baselists[2] = "privatebaselist";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue