configure.ac: Do not fatalize -Wmissing-prototypes
diff mbox series

Message ID 1545032593-8622-1-git-send-email-mingli.yu@windriver.com
State New
Headers show
Series
  • configure.ac: Do not fatalize -Wmissing-prototypes
Related show

Commit Message

Yu, Mingli Dec. 17, 2018, 7:43 a.m. UTC
From: Mingli Yu <Mingli.Yu@windriver.com>

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 <Mingli.Yu@windriver.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/configure.ac b/configure.ac
index 4bf5aea..af86e4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -552,7 +552,7 @@  my_am_cflags="\
  -Wall \
  -Wextra \
  $rpcgen_cflags \
- -Werror=missing-prototypes \
+ -Wmissing-prototypes \
  -Werror=missing-declarations \
  -Werror=format=2 \
  -Werror=undef \