more [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2021-10-13 11:28:04 +02:00
parent 1c4b484a56
commit f510564d9d
135 changed files with 361 additions and 514 deletions

View File

@@ -22,7 +22,6 @@
#include "util/ByteOrder.hxx"
#include "input/Offset.hxx"
#include "util/Compiler.h"
#include <cstdint>
@@ -33,7 +32,7 @@ class InputStream;
struct DsdId {
char value[4];
gcc_pure
[[gnu::pure]]
bool Equals(const char *s) const noexcept;
};
@@ -70,7 +69,7 @@ dsdlib_skip(DecoderClient *client, InputStream &is,
/**
* Check if the sample frequency is a valid DSD frequency.
**/
gcc_const
[[gnu::const]]
bool
dsdlib_valid_freq(uint32_t samplefreq) noexcept;