[PATCH 5/6] Fix warnings about undeclared globals, they are irrelevant to the test

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

 



Signed-off-by: Pavel Roskin <proski@xxxxxxx>
---

 validation/bitfields.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/validation/bitfields.c b/validation/bitfields.c
index 292a110..16aa16d 100644
--- a/validation/bitfields.c
+++ b/validation/bitfields.c
@@ -5,13 +5,13 @@
  *
  * "warning: a.c:16:10: incompatible types for operation"
  */
-struct {
+static struct {
 	int x:4;
 } y;
 
 extern int a[];
 
-int b(void)
+static int b(void)
 {
 	return a[y.x];
 }


-
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