Index: config/gnu-cxxflags --- config/gnu-cxxflags.orig 2018-09-04 04:54:44.000000000 +0200 +++ config/gnu-cxxflags 2018-10-15 18:21:27.142188000 +0200 @@ -92,10 +92,10 @@ esac # General (copied from H5_CFLAGS) - H5_CXXFLAGS="$H5_CXXFLAGS $arch -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wredundant-decls -Winline" + H5_CXXFLAGS="$H5_CXXFLAGS $arch" # C++-specific - H5_CXXFLAGS="$H5_CXXFLAGS -Wsign-promo -Woverloaded-virtual -Wold-style-cast -Weffc++ -Wreorder -Wnon-virtual-dtor -Wctor-dtor-privacy -Wabi" + H5_CXXFLAGS="$H5_CXXFLAGS" # Production # NDEBUG is handled explicitly by the configure script Index: config/gnu-flags --- config/gnu-flags.orig 2018-10-15 18:21:27.142551000 +0200 +++ config/gnu-flags 2018-10-15 18:22:00.654535000 +0200 @@ -113,12 +113,7 @@ # NOTE: Don't add -Wpadded here since we can't/won't fix the (many) # warnings that are emitted. If you need it, add it from the # environment variable at configure time. - H5_CFLAGS="$H5_CFLAGS $arch -pedantic -Wall -Wextra -Wbad-function-cast -Wc++-compat -Wcast-align" - H5_CFLAGS="$H5_CFLAGS -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-equal" - H5_CFLAGS="$H5_CFLAGS -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-declarations -Wmissing-include-dirs" - H5_CFLAGS="$H5_CFLAGS -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith" - H5_CFLAGS="$H5_CFLAGS -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum" - H5_CFLAGS="$H5_CFLAGS -Wundef -Wunused-macros -Wunsafe-loop-optimizations -Wwrite-strings" + H5_CFLAGS="$H5_CFLAGS $arch" # Production # NDEBUG is handled explicitly by the configure script Index: java/test/h5ex_g_iterate Index: src/H5FDdirect.c --- src/H5FDdirect.c.orig 2018-09-04 04:54:44.000000000 +0200 +++ src/H5FDdirect.c 2018-10-15 18:21:27.143104000 +0200 @@ -484,7 +484,9 @@ if (H5F_ACC_EXCL & flags) o_flags |= O_EXCL; /* Flag for Direct I/O */ +#ifdef O_DIRECT o_flags |= O_DIRECT; +#endif /* Open the file */ if ((fd = HDopen(name, o_flags, H5_POSIX_CREATE_MODE_RW))<0)