- 01 Jul, 2020 1 commit
-
-
Max Kellermann authored
A bug report (https://github.com/MusicPlayerDaemon/MPD/issues/912) suggests that on Linux, reading on `cifs` files may rarely return 0 (= end of file) before the end of the file has really been reached. But that's just a theory which I need to validate, so this runtime check shall catch this condition before the assertion in DecoderBridge::Read() crashes MPD. Let's see. Closes https://github.com/MusicPlayerDaemon/MPD/issues/912
-
- 30 May, 2020 1 commit
-
-
Rosen Penev authored
The ones in std have overloads for const char/char. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 27 May, 2020 1 commit
-
-
Max Kellermann authored
Some more `-Wpedantic` fixups.
-
- 05 May, 2020 3 commits
-
-
Max Kellermann authored
This is the final piece of the series to establish io_uring support on Linux. MPD doesn't need io_uring for its efficient bulk I/O support, but to allow file I/O to be cancelled. This is a big problem on CIFS/NFS mounts where processes sleep uninterruptable if the file server disappears, deadlocking MPD. With io_uring, a flaky NFS connection allows MPD to continue to work (even though there are still deadlocks inside MPD which need to be addressed). This plugin does not yet use cancellable `open()` using `IORING_OP_OPENAT`. This will be implemented later. Lots of other optimization opportunities for io_uring are still missing as well - for example the database update could benefit a lot, but unfortunately, io_uring doesn't have `readdir()` support just yet.
-
Max Kellermann authored
This makes ccache more efficient when recompiling with different plugins.
-
Max Kellermann authored
-
- 08 Apr, 2020 2 commits
-
-
Max Kellermann authored
Fixes regression by commit 015cbff9 causing a crash bug because the iterators of two different temporaries were used.
-
Rosen Penev authored
std::all_of becomes constexpr in C++20. I'm not sure it results in better performance. Found with useStlAlgorithm Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 26 Mar, 2020 2 commits
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Max Kellermann authored
-
- 17 Mar, 2020 1 commit
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Mar, 2020 3 commits
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with clang's -Winconsistent-missing-destructor-override Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Mar, 2020 3 commits
-
-
Max Kellermann authored
-
Rosen Penev authored
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 2 commits
-
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 17 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with llvm-namespace-comment Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Feb, 2020 1 commit
-
-
Max Kellermann authored
-
- 04 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 02 Feb, 2020 3 commits
-
-
Rosen Penev authored
Found with performance-unnecessary-value-param Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-redundant-void-arg Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with performance-for-range-copy Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Feb, 2020 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Rosen Penev authored
Found with modernize-use-override Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Prevents compiling those sources many times, once for each debug program using it.
-
Max Kellermann authored
-
- 24 Dec, 2019 1 commit
-
-
Max Kellermann authored
Like fe598e7d
-
- 18 Dec, 2019 1 commit
-
-
Jacob Vosmaer authored
-
- 16 Dec, 2019 1 commit
-
-
Jacob Vosmaer authored
-
- 04 Nov, 2019 1 commit
-
-
Max Kellermann authored
Extends the URI fragment parameter added in commit cf9ee339 Closes https://github.com/MusicPlayerDaemon/MPD/issues/679
-
- 26 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 15 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 14 Aug, 2019 1 commit
-
-
Max Kellermann authored
Prepare for using other crypto libraries, e.g. FFmpeg's libavutil.
-