misc: compiler warning fixes
Fix few compiler warnings. Some of these warnings appeared multiple times, and the listing bellow is more about which sort of errors where fixed. devname.c:87:12: warning: comparison of integers of different signs: 'int' and 'unsigned long' output.c:389:36: warning: passing 'char **const' to parameter of type 'const char *const restrict *' discards qualifiers in nested pointer types output.c:611:31: warning: comparison of integers of different signs: 'const unsigned long' and 'int' stacktrace.c:33:37: warning: unused parameter 'signum' Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
@ -30,7 +30,7 @@ static void debug_stop(char **args){
|
||||
}
|
||||
|
||||
/***********/
|
||||
static void stack_trace_sigchld(int signum){
|
||||
static void stack_trace_sigchld(int signum __attribute__ ((__unused__))){
|
||||
stack_trace_done = 1;
|
||||
}
|
||||
|
||||
@ -156,7 +156,7 @@ void debug(int method, char *prog_name){
|
||||
}
|
||||
|
||||
/************/
|
||||
static void stack_trace_sigsegv(int signum){
|
||||
static void stack_trace_sigsegv(int signum __attribute__ ((__unused__))){
|
||||
debug(STACK_TRACE, stored_prog_name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user