mirror of
https://github.com/neovim/neovim.git
synced 2026-07-19 15:41:32 +00:00
build: don't define FUNC_ATTR_* as empty in headers (#26317)
FUNC_ATTR_* should only be used in .c files with generated headers. Defining FUNC_ATTR_* as empty in headers causes misuses of them to be silently ignored. Instead don't define them by default, and only define them as empty after a .c file has included its generated header.
This commit is contained in:
@@ -36,9 +36,11 @@ typedef struct {
|
||||
size_t li_length; ///< Length of the string inside the read item.
|
||||
} ListReaderState;
|
||||
|
||||
static inline ListReaderState encode_init_lrstate(const list_T *list)
|
||||
REAL_FATTR_NONNULL_ALL;
|
||||
|
||||
/// Initialize ListReaderState structure
|
||||
static inline ListReaderState encode_init_lrstate(const list_T *const list)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
return (ListReaderState) {
|
||||
.list = list,
|
||||
|
||||
Reference in New Issue
Block a user