Cleanup: add function attributes to BLI_sprintf
Quiet warning, suggesting to use attributes with GCC.
This commit is contained in:
parent
494385a5bc
commit
3fa6aacb91
|
@ -206,11 +206,12 @@ char *BLI_sprintfN(const char *__restrict format, ...) ATTR_WARN_UNUSED_RESULT
|
|||
ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1, 2);
|
||||
|
||||
/**
|
||||
* A wrapper around ::sprintf() which does not generate security warnings.
|
||||
* A wrapper around `::sprintf()` which does not generate security warnings.
|
||||
*
|
||||
* \note Use BLI_snprintf for cases when the string size is known.
|
||||
* \note Use #BLI_snprintf for cases when the string size is known.
|
||||
*/
|
||||
int BLI_sprintf(char *__restrict str, const char *__restrict format, ...);
|
||||
int BLI_sprintf(char *__restrict str, const char *__restrict format, ...) ATTR_NONNULL(1, 2)
|
||||
ATTR_PRINTF_FORMAT(2, 3);
|
||||
|
||||
/**
|
||||
* This roughly matches C and Python's string escaping with double quotes - `"`.
|
||||
|
|
Loading…
Reference in New Issue