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@xxxxxxxxxx> --- Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.34.1