summaryrefslogtreecommitdiff
path: root/src/util/StringAPI.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/StringAPI.hxx')
-rw-r--r--src/util/StringAPI.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/StringAPI.hxx b/src/util/StringAPI.hxx
index 1d6a7dea9..b94a4566f 100644
--- a/src/util/StringAPI.hxx
+++ b/src/util/StringAPI.hxx
@@ -107,7 +107,7 @@ UnsafeCopyString(char *dest, const char *src) noexcept
strcpy(dest, src);
}
-gcc_nonnull_all
+gcc_returns_nonnull gcc_nonnull_all
static inline char *
UnsafeCopyStringP(char *dest, const char *src) noexcept
{
@@ -165,7 +165,7 @@ StringCollate(const char *a, const char *b) noexcept
* Copy the string to a new allocation. The return value must be
* freed with free().
*/
-gcc_malloc gcc_nonnull_all
+gcc_malloc gcc_returns_nonnull gcc_nonnull_all
static inline char *
DuplicateString(const char *p) noexcept
{