mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
path.c: Remove invalid FUNC_ATTR_NONNULL_RET
References https://github.com/neovim/neovim/pull/6514#issuecomment-301235265
This commit is contained in:
@@ -435,7 +435,7 @@ bool add_pathsep(char *p)
|
|||||||
/// @return [allocated] Copy of absolute path to `fname` or NULL when
|
/// @return [allocated] Copy of absolute path to `fname` or NULL when
|
||||||
/// `fname` is NULL.
|
/// `fname` is NULL.
|
||||||
char *FullName_save(const char *fname, bool force)
|
char *FullName_save(const char *fname, bool force)
|
||||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC
|
FUNC_ATTR_MALLOC
|
||||||
{
|
{
|
||||||
if (fname == NULL) {
|
if (fname == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -453,7 +453,7 @@ char *FullName_save(const char *fname, bool force)
|
|||||||
/// @param name An absolute or relative path.
|
/// @param name An absolute or relative path.
|
||||||
/// @return The absolute path of `name`.
|
/// @return The absolute path of `name`.
|
||||||
char_u *save_absolute_path(const char_u *name)
|
char_u *save_absolute_path(const char_u *name)
|
||||||
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL
|
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_ALL
|
||||||
{
|
{
|
||||||
if (!path_is_absolute_path(name)) {
|
if (!path_is_absolute_path(name)) {
|
||||||
return (char_u *)FullName_save((char *)name, true);
|
return (char_u *)FullName_save((char *)name, true);
|
||||||
|
Reference in New Issue
Block a user