• 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
..
plugins Loading commit data...
Client.hxx Loading commit data...
Domain.cxx Loading commit data...
Domain.hxx Loading commit data...
Finish.cxx Loading commit data...
Init.cxx Loading commit data...
Internal.cxx Loading commit data...
Internal.hxx Loading commit data...
MultipleOutputs.cxx Loading commit data...
MultipleOutputs.hxx Loading commit data...
OutputAPI.hxx Loading commit data...
OutputCommand.cxx Loading commit data...
OutputCommand.hxx Loading commit data...
OutputControl.cxx Loading commit data...
OutputControl.hxx Loading commit data...
OutputPlugin.cxx Loading commit data...
OutputPlugin.hxx Loading commit data...
OutputPrint.cxx Loading commit data...
OutputPrint.hxx Loading commit data...
OutputState.cxx Loading commit data...
OutputState.hxx Loading commit data...
OutputThread.cxx Loading commit data...
Registry.cxx Loading commit data...
Registry.hxx Loading commit data...
SharedPipeConsumer.cxx Loading commit data...
SharedPipeConsumer.hxx Loading commit data...
Source.cxx Loading commit data...
Source.hxx Loading commit data...
Timer.cxx Loading commit data...
Timer.hxx Loading commit data...
Wrapper.hxx Loading commit data...