use [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2023-03-06 15:57:36 +01:00
parent 3b9aab0684
commit 42f6a0441c
101 changed files with 167 additions and 234 deletions
+2 -2
View File
@@ -237,7 +237,7 @@ private:
* Note: this function does not check if the decoder is already
* finished.
*/
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
bool IsDecoderAtCurrentSong() const noexcept {
assert(pipe != nullptr);
@@ -249,7 +249,7 @@ private:
* decoding it, or has finished doing it), and the player hasn't
* switched to that song yet.
*/
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
bool IsDecoderAtNextSong() const noexcept {
return dc.pipe != nullptr && !IsDecoderAtCurrentSong();
}