# HG changeset patch
# User frdupin
# Date 1170060142 -3600
# Node ID debc68b124b77017095a289536eb0717f673fd46
# Parent  c0b4b2ef75797d0ac737eb0330ebf3e6bcb097f2
compiler compatibility : accessDictionaryError contains nothing out of debogue mode

diff -r c0b4b2ef7579 -r debc68b124b7 include/objacces.h
--- 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
diff -r c0b4b2ef7579 -r debc68b124b7 src/objacces.c
--- 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,