Gisle Vanem
2017-05-12 09:43:41 UTC
I'm not sure exactly when or how these new warnings from
clang-cl happened (a lot of them):
f:/ProgramFiler-x86/WindowsKits/Include/10.0.15063.0/ucrt/stdlib.h(78,5):
warning: macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if _CRT_INTERNAL_NONSTDC_NAMES
^
f:\ProgramFiler-x86\WindowsKits\Include\10.0.15063.0\ucrt\corecrt.h(288,11): note: expanded from macro
'_CRT_INTERNAL_NONSTDC_NAMES'
( defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || \
^
Really, why? This happens in any program using Gnulib. The above is from Wget.
I guess it has something to do with (the lack of?) one of the '_CRT_x'
defines MS uses. I compile with '-Wno-expansion-to-defined' to ignore this
warning. Any idea?
clang-cl happened (a lot of them):
f:/ProgramFiler-x86/WindowsKits/Include/10.0.15063.0/ucrt/stdlib.h(78,5):
warning: macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if _CRT_INTERNAL_NONSTDC_NAMES
^
f:\ProgramFiler-x86\WindowsKits\Include\10.0.15063.0\ucrt\corecrt.h(288,11): note: expanded from macro
'_CRT_INTERNAL_NONSTDC_NAMES'
( defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || \
^
Really, why? This happens in any program using Gnulib. The above is from Wget.
I guess it has something to do with (the lack of?) one of the '_CRT_x'
defines MS uses. I compile with '-Wno-expansion-to-defined' to ignore this
warning. Any idea?
--
--gv
--gv