-Wall -Werror and fix warnings Modified: trunk/reactos/tools/widl/Makefile Modified: trunk/reactos/tools/widl/hash.c Modified: trunk/reactos/tools/widl/write_msft.c _____
Modified: trunk/reactos/tools/widl/Makefile --- trunk/reactos/tools/widl/Makefile 2005-03-13 17:03:42 UTC (rev 14017) +++ trunk/reactos/tools/widl/Makefile 2005-03-13 17:18:33 UTC (rev 14018) @@ -36,7 +36,8 @@
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 $@ _____
Modified: trunk/reactos/tools/widl/hash.c --- trunk/reactos/tools/widl/hash.c 2005-03-13 17:03:42 UTC (rev 14017) +++ trunk/reactos/tools/widl/hash.c 2005-03-13 17:18:33 UTC (rev 14018) @@ -511,7 +511,7 @@
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: _____
Modified: trunk/reactos/tools/widl/write_msft.c --- trunk/reactos/tools/widl/write_msft.c 2005-03-13 17:03:42 UTC (rev 14017) +++ trunk/reactos/tools/widl/write_msft.c 2005-03-13 17:18:33 UTC (rev 14018) @@ -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