<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Please add support for Wunused-local-typedefs/Wno-unused-local-typedefs"
href="http://llvm.org/bugs/show_bug.cgi?id=18265">18265</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Please add support for Wunused-local-typedefs/Wno-unused-local-typedefs
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>austinenglish@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Supported by gcc, but not supported by clang. More info:
New warnings for unused local typedefs
The behavior of -Wall has changed and now includes the new warning flag
-Wunused-local-typedefs. This may result in new warnings in code that compiled
cleanly with previous versions of GCC.
For example,
template<typename _Tp>
int
foo(_Tp __a)
{
typedef int return_type;
return 5;
}
int i = foo(415);
Gives the following diagnostic:
warning: typedef ‘return_type’ locally defined but not used
[-Wunused-local-typedefs]
typedef int return_type;
^
Although these warnings will not result in compilation failure, often -Wall is
used in conjunction with -Werror and as a result, new warnings are turned into
new errors.
To fix, simply remove the unused typedef.
As a workaround, use -Wno-unused-local-typedefs.
from:
<a href="http://gcc.gnu.org/gcc-4.8/porting_to.html">http://gcc.gnu.org/gcc-4.8/porting_to.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>