• Max Kellermann's avatar
    *: remove "pure" and "const" attributes from throwing functions · 788e3b31
    Max Kellermann authored
    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.
    788e3b31
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
python/build Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...