[ofw] Remove warnings from build

Tzachi Dar tzachid at mellanox.co.il
Tue May 6 04:54:25 PDT 2008


The following patch removes some more warnings from our build.
 
Index: Q:/projinf3/trunk/ulp/opensm/user/libvendor/SOURCES
===================================================================
--- Q:/projinf3/trunk/ulp/opensm/user/libvendor/SOURCES (revision 2404)
+++ Q:/projinf3/trunk/ulp/opensm/user/libvendor/SOURCES (revision 2405)
@@ -18,6 +18,7 @@
 !endif
 
 USE_NTDLL=1
+USE_NATIVE_EH=1
 OVR_DIR=..\addon
 
 
@@ -45,7 +46,7 @@
  $(WINIBHOME)\inc\user;
 
 # Could be any special flag needed for this project 
-USER_C_FLAGS=$(USER_C_FLAGS) /Ze
+USER_C_FLAGS=$(USER_C_FLAGS) 
 #Add preproccessor definitions
 C_DEFINES=$(C_DEFINES) -DWIN32 -D__WIN__ -D__i386__ -Dinline=__inline
-DMT_LITTLE_ENDIAN -DOSM_VENDOR_INTF_AL
 C_DEFINES=$(C_DEFINES) -I.. -DHAVE_CONFIG_H
Index: Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.h
===================================================================
--- Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.h (revision 2404)
+++ Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.h (revision 2405)
@@ -106,15 +106,17 @@
 
 #if DBG
 
+
+extern const int MLX4_PRINT_HELPER;
+
 #define MLX4_PRINT(_level_,_flags_,_msg_)  \
  if ((_level_) <= g_mlx4_dbg_level && (_flags_) & g_mlx4_dbg_flags) {\
                 _MLX4_PRINT("[MLX4] %s():",__FUNCTION__);\
-                if((_level_) == TRACE_LEVEL_ERROR) _MLX4_PRINT
("***ERROR***  ");\
+                if((_level_ | MLX4_PRINT_HELPER) == TRACE_LEVEL_ERROR)
_MLX4_PRINT ("***ERROR***  ");\
   _MLX4_PRINT _msg_  ; \
  }
  
 
-//
 #else
 
 #define MLX4_PRINT(lvl ,flags, msg) 
Index: Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.c
===================================================================
--- Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.c (revision 2404)
+++ Q:/projinf3/trunk/hw/mlx4/user/hca/mlx4_debug.c (revision 2405)
@@ -41,6 +41,7 @@
 #if DBG 
 uint32_t g_mlx4_dbg_level = TRACE_LEVEL_WARNING;
 uint32_t g_mlx4_dbg_flags= MLX4_DBG_QP | MLX4_DBG_CQ | MLX4_DBG_MEMORY;
+const int MLX4_PRINT_HELPER = 0;
 #endif
 
 VOID
@@ -53,7 +54,7 @@
 #if DBG
 #define     TEMP_BUFFER_SIZE        1024
     va_list    list;
-    UCHAR      debugMessageBuffer[TEMP_BUFFER_SIZE];
+    CHAR      debugMessageBuffer[TEMP_BUFFER_SIZE];
     HRESULT result;
     
     va_start(list, msg);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080506/7a9495c8/attachment.html>


More information about the ofw mailing list