* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Enable -Wthread-safety
if supported.
+2024-09-25 Bruno Haible <bruno@clisp.org>
+
+ manywarnings: Enable -Wthread-safety for clang.
+ * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Enable -Wthread-safety
+ if supported.
+
2024-09-25 Bruno Haible <bruno@clisp.org>
build-to-host.m4: Add one more convenience macro.
# manywarnings.m4
-# serial 27
+# serial 28
dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
esac
fi
+ # These options are not supported by gcc, but are useful with clang.
+ AS_VAR_APPEND([$1], [' -Wthread-safety'])
+
# Disable specific options as needed.
if test "$gl_cv_cc_nomfi_needed" = yes; then
AS_VAR_APPEND([$1], [' -Wno-missing-field-initializers'])