diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-12-06 15:10:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:23 -0500 |
commit | 44891afed744274c15246b07747835ab1a3924d6 (patch) | |
tree | f785fd748baa1af5ce98750af4a5bf7a24574caf /source4 | |
parent | c62615f2686a048bbb470801b146d589b17eece4 (diff) | |
download | samba-44891afed744274c15246b07747835ab1a3924d6.tar.gz samba-44891afed744274c15246b07747835ab1a3924d6.tar.bz2 samba-44891afed744274c15246b07747835ab1a3924d6.zip |
r4076: fix compiler warning
metze
(This used to be commit 2647b47557c880dd5f24a4cd15475badfd7fdc94)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/pidl/stub.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/pidl/stub.pm b/source4/build/pidl/stub.pm index a9843e106e..fde239219f 100644 --- a/source4/build/pidl/stub.pm +++ b/source4/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"; |