Discussion:
[Bug-apl] old-style cast: SVN 988
David B. Lamkins
2017-08-07 17:51:15 UTC
Permalink
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
Juergen Sauermann
2017-08-07 20:33:52 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi David,<br>
<br>
thanks, fixed. I just discovered an issue with old-style casts for
which I have no good solution yet:<br>
<br>
On Raspberry Pi some system #include files seem to have old-style
C-casts which then trigger<br>
the <b>-Woldstyle-cast warning</b>. On my Intel Ubuntu this works
just fine. The workaround for platforms<br>
on which </font><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif"><b>-Woldstyle-cast warning</b>
come</font>s from system #include files is <b>./configure</b>
with <b>CXX_WERROR=no</b>.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 08/07/2017 07:51 PM, David B.
Lamkins wrote:<br>
</div>
<blockquote cite="mid:***@dworkin" type="cite">
<pre wrap="">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 &lt;&lt; "thread: " &lt;&lt; (const void *)pthread_self() &lt;&lt; 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



</pre>
</blockquote>
<br>
</body>
</html>

Loading...