configure.ac: Do not fatalize -Wmissing-prototypes
Subsystems (2)
PATCH 1/1 configure.ac: Do not fatalize -Wmissing-prototypes
From: Mingli Yu <[email protected]>
There comes below error when run "make -C tests/nsm_client nsm_client"
| nlm_sm_inter_svc.c:20:1: error: no previous prototype for 'nlm_sm_prog_3' [-Werror=missing-prototypes]
It is because rpcgen doesn't generate -Wmissing-prototypes free code for nlm_sm_inter_svc.c with below logic in tests/nsm_client/Makefile.am
[snip]GENFILES_SVC = nlm_sm_inter_svc.c
[snip]
$(GENFILES_SVC): %_svc.c: %.x $(RPCGEN)
test -f $@ && rm -rf $@ || true
$(RPCGEN) -m -o $@ $<Signed-off-by Mingli Yu <[email protected]>
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
@@ -552,7 +552,7 @@ my_am_cflags="\ -Wall \ -Wextra \ $rpcgen_cflags \ - -Werror=missing-prototypes \ + -Wmissing-prototypes \ -Werror=missing-declarations \ -Werror=format=2 \ -Werror=undef \
Signature · 1 line
2.7.4