[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New clang-cl warnings
From: |
Gisle Vanem |
Subject: |
New clang-cl warnings |
Date: |
Fri, 12 May 2017 11:43:41 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
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?
--
--gv
- New clang-cl warnings,
Gisle Vanem <=