diff --git a/build/bakefiles/expat.bkl b/build/bakefiles/expat.bkl
index ef4f4e9f47..1adf5159c3 100644
--- a/build/bakefiles/expat.bkl
+++ b/build/bakefiles/expat.bkl
@@ -22,6 +22,7 @@
COMPILED_FROM_DSP
+ -w-8004 -w-8008 -w-8057 -w-8066
src/expat/lib/xmlparse.c
src/expat/lib/xmlrole.c
diff --git a/build/msw/makefile.bcc b/build/msw/makefile.bcc
index a74b7ab399..80f8555830 100644
--- a/build/msw/makefile.bcc
+++ b/build/msw/makefile.bcc
@@ -633,7 +633,8 @@ ODBCLIB_OBJECTS = \
$(OBJS)\odbclib_db.obj \
$(OBJS)\odbclib_dbtable.obj
WXEXPAT_CFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) \
- -tWM -I$(LIBDIRNAME) -DCOMPILED_FROM_DSP $(CFLAGS)
+ -tWM -I$(LIBDIRNAME) -DCOMPILED_FROM_DSP $(CFLAGS) -w-8004 -w-8008 -w-8057 \
+ -w-8066
WXEXPAT_OBJECTS = \
$(OBJS)\wxexpat_xmlparse.obj \
$(OBJS)\wxexpat_xmlrole.obj \