<html>
<head>
<base href="https://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 --- - gcc -Wattribute warnings for several libc++ headers"
href="https://llvm.org/bugs/show_bug.cgi?id=24988">24988</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>gcc -Wattribute warnings for several libc++ headers
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14956" name="attach_14956" title="libc++ -Wattributes warnings from gcc 4.9.2">attachment 14956</a> <a href="attachment.cgi?id=14956&action=edit" title="libc++ -Wattributes warnings from gcc 4.9.2">[details]</a></span>
libc++ -Wattributes warnings from gcc 4.9.2
When building libc++ with gcc 4.9.2, there are quite a number of -Wattributes
warnings. A log of all of them is attached.
They are either "type attributes ignored after type is already defined", for
example with _LIBCPP_DECLARE_STRONG_ENUM:
In file included from include/__mutex_base:16:0,
from include/condition_variable:111,
from src/condition_variable.cpp:14:
include/system_error:345:1: warning: type attributes ignored after type is
already defined [-Wattributes]
};
^
or "visibility attribute ignored because it conflicts with previous
declaration", like with:
In file included from include/memory:604:0,
from include/condition_variable:112,
from src/condition_variable.cpp:14:
include/utility:471:50: warning: type attributes ignored after type is already
defined [-Wattributes]
template <class _Tp> class _LIBCPP_TYPE_VIS_ONLY reference_wrapper;
^
In file included from src/condition_variable.cpp:14:0:
include/condition_variable:161:1: warning:
std::__1::condition_variable_any::condition_variable_any() : visibility
attribute ignored because it [-Wattributes]
condition_variable_any::condition_variable_any()
^
include/condition_variable:127:5: warning: conflicts with previous declaration
here [-Wattributes]
condition_variable_any();
^
include/condition_variable:129:10: warning: conflicts with previous declaration
here [-Wattributes]
void notify_one() _NOEXCEPT;
^
include/condition_variable:130:10: warning: conflicts with previous declaration
here [-Wattributes]
void notify_all() _NOEXCEPT;
^</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>