mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
build: PRAGMA_DIAG_PUSH_IGNORE_MISSING_PROTOTYPES
On Travis CI, -Wmissing-prototypes gives strange error:
In file included from ../src/nvim/eval.c:5965:
/home/travis/build/neovim/neovim/build/src/nvim/auto/funcs.generated.h.gperf:215:1: error: conflicting types for 'find_internal_func_gperf'
find_internal_func_gperf (register const char *str, register unsigned int len)
^
../src/nvim/eval.c:5962:20: note: previous declaration is here
const VimLFuncDef *find_internal_func_gperf(register const char *str,
^
This commit is contained in:
@@ -5958,11 +5958,9 @@ static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate)
|
||||
#pragma function (floor)
|
||||
#endif
|
||||
|
||||
// silence -Wmissing-prototypes for funcs.generated.h
|
||||
const VimLFuncDef *find_internal_func_gperf(register const char *str,
|
||||
register size_t len);
|
||||
|
||||
PRAGMA_DIAG_PUSH_IGNORE_MISSING_PROTOTYPES
|
||||
# include "funcs.generated.h"
|
||||
PRAGMA_DIAG_POP
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user