diff --git a/proc/ksym.c b/proc/ksym.c index 4549ffaa..2aef56b5 100644 --- a/proc/ksym.c +++ b/proc/ksym.c @@ -224,7 +224,7 @@ open_again: default: _exit(101); case EACCES: /* somebody screwing around? */ /* FIXME: set a flag to disable symbol lookup? */ - case ENOENT: /* no module support */ + case ENOENT:; /* no module support */ } goto hell; } diff --git a/ps/display.c b/ps/display.c index 1ad27b83..79206809 100644 --- a/ps/display.c +++ b/ps/display.c @@ -327,6 +327,7 @@ static void show_forest(const int n){ } show_tree(i,n,0,0); not_root: + ; } /* don't free the array because it takes time and ps will exit anyway */ } @@ -379,6 +380,7 @@ int main(int argc, char *argv[]){ case SIGKILL: /* can not catch */ case SIGSTOP: /* can not catch */ case SIGWINCH: /* don't care if window size changes */ + ; } } while (0); #endif diff --git a/ps/parser.c b/ps/parser.c index 1e92be24..5a7e0125 100644 --- a/ps/parser.c +++ b/ps/parser.c @@ -699,6 +699,7 @@ static const char *grab_gnu_arg(void){ if(*++flagptr) return flagptr; /* found it */ return NULL; /* empty '=' or ':' */ case '\0': /* try next argv[] */ + ; } if(thisarg+2 > ps_argc) return NULL; /* there is nothing left */ /* argument follows ps_argv[thisarg] */ diff --git a/ps/sortformat.c b/ps/sortformat.c index aff90e4e..c6f7e64d 100644 --- a/ps/sortformat.c +++ b/ps/sortformat.c @@ -140,6 +140,7 @@ static const char *aix_format_parse(sf_node *sfn){ if(c) goto initial; return "Improper AIX field descriptor."; looks_ok: + ; } /*** sanity check passed ***/