Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
751fff07
Commit
751fff07
authored
Oct 23, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/Error: work around clang bug leading to crash
Closes #373
parent
f7d1408a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS
NEWS
+1
-0
Error.hxx
src/input/Error.hxx
+8
-0
No files found.
NEWS
View file @
751fff07
...
@@ -12,6 +12,7 @@ ver 0.20.22 (not yet released)
...
@@ -12,6 +12,7 @@ ver 0.20.22 (not yet released)
- now runs as a service
- now runs as a service
- add button to start/stop MPD
- add button to start/stop MPD
- add option to auto-start on boot
- add option to auto-start on boot
* work around clang bug leading to crash
* install the SVG icon
* install the SVG icon
ver 0.20.21 (2018/08/17)
ver 0.20.21 (2018/08/17)
...
...
src/input/Error.hxx
View file @
751fff07
...
@@ -30,7 +30,15 @@
...
@@ -30,7 +30,15 @@
* exist? This function attempts to recognize exceptions thrown by
* exist? This function attempts to recognize exceptions thrown by
* various input plugins.
* various input plugins.
*/
*/
#ifndef __clang__
/* the "pure" attribute must be disabled because it triggers a clang
bug, wrongfully leading to std::terminate() even though the
function catches all exceptions thrown by std::rethrow_exception();
this can be reproduced with clang 7 from Android NDK r18b and on
clang 6 on FreeBSD
(https://github.com/MusicPlayerDaemon/MPD/issues/373) */
gcc_pure
gcc_pure
#endif
bool
bool
IsFileNotFound
(
std
::
exception_ptr
e
);
IsFileNotFound
(
std
::
exception_ptr
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment