make_requests: Do not generate code that casts zero to a pointer.
Michael Stefaniuc
mstefani at redhat.de
Wed Nov 5 03:50:38 CST 2008
Thanks to Henri Verbeet for pointing me to this.
---
tools/make_requests | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/make_requests b/tools/make_requests
index 2dcac16..8dd21a1 100755
--- a/tools/make_requests
+++ b/tools/make_requests
@@ -338,7 +338,7 @@ push @trace_lines, "};\n\n";
push @trace_lines, "static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {\n";
foreach my $req (@requests)
{
- push @trace_lines, " (dump_func)", $replies{$req} ? "dump_${req}_reply,\n" : "0,\n";
+ push @trace_lines, " ", $replies{$req} ? "(dump_func)dump_${req}_reply,\n" : "NULL,\n";
}
push @trace_lines, "};\n\n";
--
1.6.0.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081105/36442e46/attachment-0001.pgp
More information about the wine-patches
mailing list