Hi,

this patch addresses the compiler warnings when
CONFIG_XENO_OPT_NATIVE_REGISTRY is switched off.

Jan
Index: ksrc/skins/native/mutex.c
===================================================================
--- ksrc/skins/native/mutex.c   (revision 564)
+++ ksrc/skins/native/mutex.c   (working copy)
@@ -106,7 +106,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __mutex_pnode = {
 
Index: ksrc/skins/native/heap.c
===================================================================
--- ksrc/skins/native/heap.c    (revision 564)
+++ ksrc/skins/native/heap.c    (working copy)
@@ -106,7 +106,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __heap_pnode = {
 
Index: ksrc/skins/native/event.c
===================================================================
--- ksrc/skins/native/event.c   (revision 564)
+++ ksrc/skins/native/event.c   (working copy)
@@ -99,7 +99,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __event_pnode = {
 
Index: ksrc/skins/native/cond.c
===================================================================
--- ksrc/skins/native/cond.c    (revision 564)
+++ ksrc/skins/native/cond.c    (working copy)
@@ -97,7 +97,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __cond_pnode = {
 
Index: ksrc/skins/native/sem.c
===================================================================
--- ksrc/skins/native/sem.c     (revision 564)
+++ ksrc/skins/native/sem.c     (working copy)
@@ -100,7 +100,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __sem_pnode = {
 
Index: ksrc/skins/native/queue.c
===================================================================
--- ksrc/skins/native/queue.c   (revision 564)
+++ ksrc/skins/native/queue.c   (working copy)
@@ -103,7 +103,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __queue_pnode = {
 
Index: ksrc/skins/native/alarm.c
===================================================================
--- ksrc/skins/native/alarm.c   (revision 564)
+++ ksrc/skins/native/alarm.c   (working copy)
@@ -94,7 +94,7 @@
     .write_proc = NULL
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __alarm_pnode = {
 
Index: ksrc/skins/native/pipe.c
===================================================================
--- ksrc/skins/native/pipe.c    (revision 564)
+++ ksrc/skins/native/pipe.c    (working copy)
@@ -71,7 +71,7 @@
     .link_proc = &__pipe_link_proc,
 };
 
-#elif CONFIG_XENO_OPT_NATIVE_REGISTRY
+#elif defined(CONFIG_XENO_OPT_NATIVE_REGISTRY)
 
 static RT_OBJECT_PROCNODE __pipe_pnode = {
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to