diff options
author | Max Kellermann <max@musicpd.org> | 2017-05-08 14:48:58 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-05-08 17:25:06 +0200 |
commit | 788e3b31e1ab8243386339eaf136ede18f015d55 (patch) | |
tree | 3f9c7e44c1e522be9e1e64ed918c15b1b8101466 /NEWS | |
parent | 71f0ed8b7499011b53f90998ebfbd3250fd80948 (diff) |
*: remove "pure" and "const" attributes from throwing functions
The "pure" and "const" attributes are not so well-defined, and a
recent clang version implements an optimization which pushes the
definition's boundary beyond what I believed it was. clang now
assumes that functions declared "pure" cannot throw exceptions, even
if they lack the "noexcept" specification.
When compiled with this new clang version, MPD will crash randomly if
an exception happens to get thrown by such as "pure" function
(https://github.com/MusicPlayerDaemon/MPD/issues/41).
This commit removes all such misplaced "pure" and "const" attributes,
closing #41.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,6 +1,7 @@ ver 0.20.7 (not yet released) * database - simple: fix false positive directory loop detection with NFS +* fix random crashes when compiled with clang ver 0.20.6 (2017/03/10) * input |