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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux