mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Remove some unnecessary function attributes (#4909)
This removes attribute FUNC_ATTR_NONNULL_ALL for functions without a pointer parameter.
This commit is contained in:
parent
a160590e40
commit
2902153648
@ -1582,7 +1582,7 @@ static char_u latin1lower[257] =
|
||||
///
|
||||
/// @param c character to check
|
||||
bool vim_islower(int c)
|
||||
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL
|
||||
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
if (c <= '@') {
|
||||
return false;
|
||||
@ -1613,7 +1613,7 @@ bool vim_islower(int c)
|
||||
///
|
||||
/// @param c character to check
|
||||
bool vim_isupper(int c)
|
||||
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL
|
||||
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
if (c <= '@') {
|
||||
return false;
|
||||
|
@ -398,7 +398,6 @@ int os_setperm(const char_u *name, int perm)
|
||||
/// @note If the `owner` or `group` is specified as `-1`, then that ID is not
|
||||
/// changed.
|
||||
int os_fchown(int file_descriptor, uv_uid_t owner, uv_gid_t group)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
uv_fs_t request;
|
||||
int result = uv_fs_fchown(&fs_loop, &request, file_descriptor,
|
||||
|
Loading…
Reference in New Issue
Block a user