-Wall -Werror and fix warnings
authorRoyce Mitchell III <royce3@ev1.net>
Sun, 13 Mar 2005 17:18:33 +0000 (17:18 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sun, 13 Mar 2005 17:18:33 +0000 (17:18 +0000)
svn path=/trunk/; revision=14018

reactos/tools/widl/Makefile
reactos/tools/widl/hash.c
reactos/tools/widl/write_msft.c

index 2716d53..b70896a 100644 (file)
@@ -36,7 +36,8 @@ CLEAN_FILES = *.o $(TARGET)
 \r
 HOST_CFLAGS = -DYYDEBUG=1 -DINT16=SHORT -D__USE_W32API \\r
               -I$(LIB_WPP_DIR) -I$(PATH_TO_TOP)/include/wine \\r
-              -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/w32api/include\r
+              -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/w32api/include \\r
+              -Werror -Wall\r
 \r
 %.o: %.c\r
        $(HOST_CC) $(HOST_CFLAGS) -c $< -o $@\r
index 89822cc..8ee3098 100644 (file)
@@ -511,7 +511,7 @@ unsigned long lhash_val_of_name_sys( syskind_t skind, LCID lcid, LPCSTR lpStr)
   switch (PRIMARYLANGID(LANGIDFROMLCID(lcid)))
   {
   default:
-    fprintf(stderr, "Unknown lcid %lx, treating as latin-based, please report\n", lcid);
+    fprintf(stderr, "Unknown lcid %lx, treating as latin-based, please report\n", (long)lcid);
     /* .. Fall Through .. */
   case LANG_AFRIKAANS:  case LANG_ALBANIAN:   case LANG_ARMENIAN:
   case LANG_ASSAMESE:   case LANG_AZERI:      case LANG_BASQUE:
index 2d36081..47cc8be 100644 (file)
@@ -33,6 +33,9 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <time.h>
+#ifdef WIN32
+#include <io.h> /* write() */
+#endif /* WIN32 */
 
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT