X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=Makefile.am;h=45a85af82597b50324234a3618e21ecc16d1c9b5;hp=d0d9f38ac6f0e7b2ae41946e57d608495cd6e4b6;hb=a6442deab2424760208a1b03d04e3c26b82c36a4;hpb=16b6e19468c93a370ff2347031a62130c18ad7d7 diff --git a/Makefile.am b/Makefile.am index d0d9f38a..45a85af8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,8 +2,16 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(top_srcdir)/include $(WINDOWS_CPPFLAGS) \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -AM_CFLAGS = -std=gnu99 -fno-strict-aliasing \ - -Wmissing-prototypes -Wstrict-prototypes + +AM_CFLAGS = -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes \ + -Werror-implicit-function-declaration \ + -fno-common -Wundef -Wno-pointer-sign + +if WINDOWS_NATIVE_BUILD +# This option is needed to make packed structures work as expected +# with gcc 4.7+ (mingw) on Windows. +AM_CFLAGS += -mno-ms-bitfields +endif lib_LTLIBRARIES = libwim.la @@ -50,7 +58,6 @@ libwim_la_SOURCES = \ src/xpress-decompress.c \ include/wimlib/apply.h \ include/wimlib/assert.h \ - include/wimlib/buffer_io.h \ include/wimlib/callback.h \ include/wimlib/capture.h \ include/wimlib/compiler.h \