-Wall -Werror and fix warnings

svn path=/trunk/; revision=14018
This commit is contained in:
Royce Mitchell III 2005-03-13 17:18:33 +00:00
parent e9ae9105f5
commit 5751b32540
3 changed files with 6 additions and 2 deletions

View file

@ -36,7 +36,8 @@ CLEAN_FILES = *.o $(TARGET)
HOST_CFLAGS = -DYYDEBUG=1 -DINT16=SHORT -D__USE_W32API \
-I$(LIB_WPP_DIR) -I$(PATH_TO_TOP)/include/wine \
-I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/w32api/include
-I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/w32api/include \
-Werror -Wall
%.o: %.c
$(HOST_CC) $(HOST_CFLAGS) -c $< -o $@

View 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:

View 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