[-mm patch] kernel/signal.c: fix compile warning

From: Adrian Bunk
Date: Thu Nov 17 2005 - 20:40:52 EST


On Thu, Nov 17, 2005 at 11:18:07AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.14-mm2:
>...
> +sigaction-should-clear-all-signals-on-sig_ign-not-just.patch
>
> Signal code fix
>...


Patches get bonus points when they don't introduce new compile
warnings...

<-- snip -->

...
CC kernel/signal.o
kernel/signal.c: In function 'rm_from_queue_full':
kernel/signal.c:638: warning: control may reach end of non-void function 'sigisemptyset' being inlined
...

<-- snip -->


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.15-rc1-mm1-full/include/linux/signal.h.old 2005-11-18 00:47:49.000000000 +0100
+++ linux-2.6.15-rc1-mm1-full/include/linux/signal.h 2005-11-18 00:52:13.000000000 +0100
@@ -102,6 +102,7 @@
return set->sig[0] == 0;
default:
_NSIG_WORDS_is_unsupported_size();
+ return 0;
}
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/