diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-12-06 15:10:31 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-12-06 15:10:31 +0000 |
commit | 9899b0349b46e3f026e71c79d0a9dd031439ee22 (patch) | |
tree | b75ce8fd0bdb48980266efa8cb39ea2ad7170687 | |
parent | 274d128173cc99c1843ab50e54e0962363cf982f (diff) | |
download | samba-9899b0349b46e3f026e71c79d0a9dd031439ee22.tar.gz samba-9899b0349b46e3f026e71c79d0a9dd031439ee22.tar.xz samba-9899b0349b46e3f026e71c79d0a9dd031439ee22.zip |
r4076: fix compiler warning
metze
-rw-r--r-- | source/build/pidl/stub.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/build/pidl/stub.pm b/source/build/pidl/stub.pm index a9843e106e4..fde239219ff 100644 --- a/source/build/pidl/stub.pm +++ b/source/build/pidl/stub.pm @@ -27,7 +27,9 @@ sub gen_dispatch_switch($) next if ($d->{TYPE} ne "FUNCTION"); pidl "\tcase $count: {\n"; - pidl "\t\tNTSTATUS result;\n"; + if ($d->{RETURN_TYPE} && $d->{RETURN_TYPE} ne "void") { + pidl "\t\tNTSTATUS result;\n"; + } pidl "\t\tstruct $d->{NAME} *r2 = r;\n"; pidl "\t\tif (DEBUGLEVEL > 10) {\n"; pidl "\t\t\tNDR_PRINT_FUNCTION_DEBUG($d->{NAME}, NDR_IN, r2);\n"; |