This avoids warnings like this, when building with Clang:
../math/fmal.c:34:3: warning: packed attribute is unnecessary for 'struct
x87reg_::(anonymous at ../math/fmal.c:34:3)' [-Wpacked]
There seem to be some discrepancy between GCC and Clang, for
which cases they warn about where the packed attribute is
unnecessary.
While the packed attribute can be removed in these cases without
actually affecting the layout of the bitfield structs/unions,
removing the attribute can change the size and alignment of the
struct. Neither of them should make any difference in these
cases though.
But as this warning isn't included in GCC/Clang's -Wextra, just
avoid manually adding it to our list of warning options.
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-crt/configure.ac | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mingw-w64-crt/configure.ac b/mingw-w64-crt/configure.ac
index bb59f10dd..1f1c11eb6 100644
--- a/mingw-w64-crt/configure.ac
+++ b/mingw-w64-crt/configure.ac
@@ -426,16 +426,16 @@ AS_CASE([$warning_level],
ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra"
ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"],
[2],[
- ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow
-Wpacked"
+ ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow"
ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration"],
[3],[
- ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow
-Wpacked"
+ ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow"
ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration
-Wmissing-noreturn -Wmissing-prototypes"],
[4],[
- ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Werror -pedantic"
+ ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2
-Wsystem-headers -Wshadow -Wmissing-declarations -Werror -pedantic"
ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration
-Wmissing-noreturn -Wmissing-prototypes"],
[5],[
- ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2
-Wsystem-headers -Wshadow -Wmissing-declarations -Wpacked -Wredundant-decls
-Werror -Wfatal-errors -pedantic -pedantic-errors"
+ ADD_C_CXX_WARNING_FLAGS="-Wall -Wextra -Wformat -Wstrict-aliasing=2
-Wsystem-headers -Wshadow -Wmissing-declarations -Wredundant-decls -Werror
-Wfatal-errors -pedantic -pedantic-errors"
ADD_C_ONLY_WARNING_FLAGS="-Wimplicit-function-declaration
-Wmissing-noreturn -Wmissing-prototypes"]
)
--
2.43.0
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public