Remove unused argument to clear_warn_func
This commit is contained in:
parent
20d4a9a7cd
commit
22e31c0e8d
|
@ -35,7 +35,7 @@ int error_init(void (*func)(char *), char *fmt,...); //init error system, set
|
|||
void set_exit_message(char *fmt,...); //specify message to print at exit
|
||||
void Warning(char *fmt,...); //print out warning message to user
|
||||
void set_warn_func(void (*f)(char *s));//specifies the function to call with warning messages
|
||||
void clear_warn_func(void (*f)(char *s));//say this function no longer valid
|
||||
void clear_warn_func();//say this function no longer valid
|
||||
void _Assert(int expr,char *expr_text,char *filename,int linenum); //assert func
|
||||
void Error(const char *fmt,...) __noreturn __attribute_gcc_format((printf, 1, 2)); //exit with error code=1, print message
|
||||
void Assert(int expr);
|
||||
|
|
|
@ -52,7 +52,7 @@ void set_warn_func(void (*f)(char *s))
|
|||
}
|
||||
|
||||
//uninstall warning function - install default printf
|
||||
void clear_warn_func(void (*f)(char *s))
|
||||
void clear_warn_func()
|
||||
{
|
||||
warn_func = warn_printf;
|
||||
}
|
||||
|
|
|
@ -960,7 +960,7 @@ void close_editor() {
|
|||
#ifndef __LINUX__
|
||||
set_warn_func(msgbox_warning);
|
||||
#else
|
||||
clear_warn_func(NULL);
|
||||
clear_warn_func();
|
||||
#endif
|
||||
|
||||
close_editor_screen();
|
||||
|
|
Loading…
Reference in a new issue