From e0b33c5549ffb1a06270af5e2b4a199496add90d Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 25 Jun 2019 10:03:44 +1000 Subject: ctdb-build: Tweak hacking of rpcgen output csbuild doesn't like the hack where variable buf is initialised to itself to avoid an unused variable warning. buf is unused so remove it instead. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/wscript b/ctdb/wscript index 614e042bd70..51a09fdc63d 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -634,7 +634,7 @@ def build(bld): target='utils/smnotify/smnotify.h', rule='rpcgen -h ${SRC} > ${TGT}') - xdr_buf_hack = 'sed -e "s@^\([ \t]*register int32_t \*buf\);@\\1 = buf;@"' + xdr_buf_hack = 'grep -Fv "register int32_t *buf;"' bld.SAMBA_GENERATOR('ctdb-smnotify-x', source='utils/smnotify/smnotify.x', -- cgit v1.2.1