1 From 66471fbf7106917da7a1536b18a0a77d07479779 Mon Sep 17 00:00:00 2001
2 From: Mingli Yu <Mingli.Yu@windriver.com>
3 Date: Mon, 17 Dec 2018 15:29:47 +0800
4 Subject: [PATCH] configure.ac: Do not fatalize -Wmissing-prototypes
6 There comes below error when run "make -C tests/nsm_client nsm_client"
7 | nlm_sm_inter_svc.c:20:1: error: no previous prototype for 'nlm_sm_prog_3' [-Werror=missing-prototypes]
9 It is because rpcgen doesn't generate -Wmissing-prototypes
10 free code for nlm_sm_inter_svc.c with below logic
11 in tests/nsm_client/Makefile.am
13 GENFILES_SVC = nlm_sm_inter_svc.c
15 $(GENFILES_SVC): %_svc.c: %.x $(RPCGEN)
16 test -f $@ && rm -rf $@ || true
19 So add the logic not to fatalize -Wmissing-prototypes.
21 Upstream-Status: Submitted[https://marc.info/?l=linux-nfs&m=154503260323936&w=2]
23 Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
26 1 file changed, 1 insertion(+), 1 deletion(-)
28 diff --git a/configure.ac b/configure.ac
29 index 50002b4..aebff01 100644
32 @@ -582,7 +582,7 @@ my_am_cflags="\
36 - -Werror=missing-prototypes \
37 + -Wmissing-prototypes \
38 -Werror=missing-declarations \