[PATCH 2/9] avoid warnings about using 0 instead of NULL

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

 



These warning wehere not emitted because of previous errors.
But ...
---
 validation/function-redecl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/validation/function-redecl.c b/validation/function-redecl.c
index 7fbceb43a..475f18e79 100644
--- a/validation/function-redecl.c
+++ b/validation/function-redecl.c
@@ -1,5 +1,5 @@
 #define __user	__attribute__((address_space(1)))
-
+#define NULL	((void*)0)
 
 int ret_type(void);
 void ret_type(void) { }				/* check-should-fail */
@@ -10,11 +10,11 @@ int const ret_const(void) { return 0; }		/* check-should-fail */
 
 
 void *ret_as(void);
-void __user *ret_as(void) { return 0; }		/* check-should-fail */
+void __user *ret_as(void) { return NULL; }	/* check-should-fail */
 
 
 void *ret_mod(void);
-void const *ret_mod(void) { return 0; }		/* check-should-fail */
+void const *ret_mod(void) { return NULL; }	/* check-should-fail */
 
 
 void arg_type(int a);
-- 
2.12.0

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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux