mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-build: Avoid unused variable warning in output from rpcgen
default/ctdb/utils/smnotify/gen_xdr.c: In function ‘xdr_status’: default/ctdb/utils/smnotify/gen_xdr.c:11:20: warning: unused variable ‘buf’ [-Wunused-variable] register int32_t *buf; ^ When generating the code, change it to assign the variable to itself. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Aug 21 07:11:02 CEST 2014 on sn-devel-104
This commit is contained in:
parent
6fd3ce5391
commit
e4118730d1
@ -306,10 +306,12 @@ 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;@"'
|
||||
|
||||
bld.SAMBA_GENERATOR('ctdb-smnotify-x',
|
||||
source='utils/smnotify/smnotify.x',
|
||||
target='utils/smnotify/gen_xdr.c',
|
||||
rule='rpcgen -c ${SRC} > ${TGT}')
|
||||
rule='rpcgen -c ${SRC} | ' + xdr_buf_hack + ' > ${TGT}')
|
||||
|
||||
bld.SAMBA_GENERATOR('ctdb-smnotify-c',
|
||||
source='utils/smnotify/smnotify.x',
|
||||
|
Loading…
Reference in New Issue
Block a user