compiler compatibility : accessDictionaryError contains nothing out of debogue mode
authorfrdupin
Mon, 29 Jan 2007 09:42:22 +0100
changeset 75 debc68b124b7
parent 74 c0b4b2ef7579
child 76 68e1c52d603d
compiler compatibility : accessDictionaryError contains nothing out of debogue mode
include/objacces.h
src/objacces.c
--- a/include/objacces.h	Mon Jan 29 09:27:58 2007 +0100
+++ b/include/objacces.h	Mon Jan 29 09:42:22 2007 +0100
@@ -56,12 +56,10 @@
 this function but we do not have the access to the right value. One example is
 getSDOerror(). So do not take attention to these variables if they are null.
 */
-#ifdef DEBUG_WAR_CONSOLE_ON
+
 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, 
 			   UNS8 sizeDataDict, UNS8 sizeDataGiven, UNS32 code);
-#else
-/*#define accessDictionaryError(...) */
-#endif
+
 
 /* Reads an entry from the object dictionary.\n
  *  \code
--- a/src/objacces.c	Mon Jan 29 09:27:58 2007 +0100
+++ b/src/objacces.c	Mon Jan 29 09:42:22 2007 +0100
@@ -27,10 +27,11 @@
 #include "objacces.h"
 
 
-#ifdef DEBUG_WAR_CONSOLE_ON
+
 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, 
 			     UNS8 sizeDataDict, UNS8 sizeDataGiven, UNS32 code)
 {
+#ifdef DEBUG_WAR_CONSOLE_ON
   MSG_WAR(0x2B09,"Dictionary index : ", index);
   MSG_WAR(0X2B10,"           subindex : ", subIndex);
   switch (code) {
@@ -59,9 +60,10 @@
   default :
     MSG_WAR(0x2B20, "Unknown error code : ", code);
   }
+#endif
   return 0; 
 }	
-#endif
+
 
 UNS32 getODentry( CO_Data* d, 
                   UNS16 wIndex,