PATCH: silence strict aliasing in dlls/opengl32
Marcus Meissner
marcus at jet.franken.de
Sun Apr 25 07:55:23 CDT 2004
Hi,
This silences the strict aliasing warnings in dlls/opengl32/ by adding
an additional (char*) cast. ((char*) may alias anything.)
Not sure how to regenerate the opemngl_ext.c file.
Ciao, Marcus
Changelog:
Fixed strict aliasing issue in make_opengl generator script.
Index: dlls/opengl32/make_opengl
===================================================================
RCS file: /home/wine/wine/dlls/opengl32/make_opengl,v
retrieving revision 1.24
diff -u -r1.24 make_opengl
--- dlls/opengl32/make_opengl 14 Apr 2004 23:58:33 -0000 1.24
+++ dlls/opengl32/make_opengl 25 Apr 2004 12:53:39 -0000
@@ -703,7 +703,7 @@
$i = 0;
foreach (sort keys %ext_functions) {
$func_ref = $ext_functions{$_};
- print EXT " { \"" . $func_ref->[0] . "\", \"" . $func_ref->[3] . "\", (void *) wine_" . $func_ref->[0] . ", (void **) (&" . $ext_prefix . $func_ref->[0] . ") }";
+ print EXT " { \"" . $func_ref->[0] . "\", \"" . $func_ref->[3] . "\", (void *) wine_" . $func_ref->[0] . ", (void **)(char*) (&" . $ext_prefix . $func_ref->[0] . ") }";
if ($i != $#tmp) {
print EXT ",";
}
More information about the wine-patches
mailing list