• jim warner's avatar
    misc: eliminate all those remaining gcc -Wall warnings · 629fa81b
    jim warner authored
    Reference(s):
    proc/readproc.c: In function 'statm2proc'
    proc/readproc.c:627:9: warning: variable 'num' set but not used [-Wunused-but-set-variable]
    
    ps/output.c: In function 'pr_context':
    ps/output.c:1273:14: warning: unused variable 'tried_load' [-Wunused-variable]
    ps/output.c:1272:16: warning: unused variable 'ps_is_selinux_enabled' [-Wunused-variable]
    ps/output.c:1272:16: warning: 'ps_is_selinux_enabled' defined but not used [-Wunused-variable]
    ps/output.c:1273:14: warning: 'tried_load' defined but not used [-Wunused-variable]
    ps/output.c:1837:18: warning: 'shortsort_array_count' defined but not used [-Wunused-const-variable=]
    ps/output.c:1803:18: warning: 'aix_array_count' defined but not used [-Wunused-const-variable=]
    
    ps/parser.c: In function 'arg_type':
    ps/parser.c:1098:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    ps/parser.c:1099:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    
    ps/sortformat.c: In function 'format_parse':
    ps/sortformat.c:241:1: warning: label 'out' defined but not used [-Wunused-label]
    
    ps/stacktrace.c:176:13: warning: 'stack_trace_sigsegv' defined but not used [-Wunused-function]
    
    watch.c: In function 'process_ansi':
    watch.c:234:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    watch.c:237:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    629fa81b
watch.c 20.8 KB