diff mbox series

[25/25] smb: fix compilation and disable warning on deprecated-declarations

Message ID 20220209222610.438470-26-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show
Series dbench: fix compile warnings and update a bit | expand

Commit Message

Luis Chamberlain Feb. 9, 2022, 10:26 p.m. UTC
smb.c hasn't been updated in a while, so disable
warning on deprecated-declarations for now. An smb
eager beaver can go fix this.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 Makefile.in | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Makefile.in b/Makefile.in
index 43890d2..a1b6645 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -21,6 +21,8 @@  CFLAGS+=`pkg-config --cflags libtirpc`
 CFLAGS+=-Wimplicit-fallthrough=2
 CFLAGS_RPCGEN=-Wno-unused-variable
 CFLAGS_RPCGEN+=-Wno-cast-function-type
+SMBCFLAGS=-Wno-deprecated-declarations
+SMBCFLAGS+=`pkg-config --cflags smbclient`
 LIBS+=`pkg-config --libs libtirpc`
 EXEEXT=@EXEEXT@
 
@@ -68,6 +70,10 @@  libnfs.o: libnfs.c libnfs.h mount.h nfs.h
 	$(NQ) '   CC    ' $@
 	$(Q)gcc -g $(CFLAGS) -c libnfs.c -o $@
 
+smb.o: smb.c dbench.h
+	$(NQ) '   CC    ' $@
+	$(Q)$(CC) -c $(CPPFLAGS) $(CFLAGS) $(SMBCFLAGS) -o $@ $<
+
 mount.h: mount.x
 	$(NQ) ' RPCGEN  ' $@
 	$(Q)rpcgen -h mount.x > mount.h