|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] old-style cast: SVN 988 |
Date: | Mon, 7 Aug 2017 22:33:52 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi David, thanks, fixed. I just discovered an issue with old-style casts for which I have no good solution yet: On Raspberry Pi some system #include files seem to have old-style C-casts which then trigger the -Woldstyle-cast warning. On my Intel Ubuntu this works just fine. The workaround for platforms on which -Woldstyle-cast warning comes from system #include files is ./configure with CXX_WERROR=no. /// Jürgen On 08/07/2017 07:51 PM, David B.
Lamkins wrote:
clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror -I/usr/include - -f 'main.cc' || echo './'`main.cc main.cc:84:26: error: use of old-style cast [-Werror,-Wold-style-cast] CERR << "thread: " << (const void *)pthread_self() << endl; This is with the same ./configure flags as my previous report: ./configure RATIONAL_NUMBERS_WANTED=yes PERFORMANCE_COUNTERS_WANTED=yes CORE_COUNT_WANTED=-3 |
[Prev in Thread] | Current Thread | [Next in Thread] |