util/PeakBuffer, ...: use [[gnu::]] attributes
This commit is contained in:
@@ -83,7 +83,7 @@ public:
|
||||
* Get the buffer, and guarantee a minimum size. This buffer
|
||||
* becomes invalid with the next Get() call.
|
||||
*/
|
||||
gcc_malloc gcc_returns_nonnull
|
||||
[[gnu::malloc]] [[gnu::returns_nonnull]]
|
||||
T *Get(size_t size) {
|
||||
if (gcc_unlikely(size > capacity)) {
|
||||
/* too small: grow */
|
||||
|
||||
Reference in New Issue
Block a user