svn commit: samba r4076 - in branches/SAMBA_4_0/source/build/pidl: .

metze at samba.org metze at samba.org
Mon Dec 6 15:10:31 GMT 2004


Author: metze
Date: 2004-12-06 15:10:31 +0000 (Mon, 06 Dec 2004)
New Revision: 4076

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4076

Log:
fix compiler warning

metze

Modified:
   branches/SAMBA_4_0/source/build/pidl/stub.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/stub.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/stub.pm	2004-12-06 11:10:15 UTC (rev 4075)
+++ branches/SAMBA_4_0/source/build/pidl/stub.pm	2004-12-06 15:10:31 UTC (rev 4076)
@@ -27,7 +27,9 @@
 		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";



More information about the samba-cvs mailing list