[hackers] [wmii] Quiet GCC strict aliasing warnings.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Jun 18 02:17:36 2007

changeset: 2162:42fa9c3d1cce
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Jun 17 20:16:30 2007 -0400
summary: Quiet GCC strict aliasing warnings.

diff -r 20e5fa86eafb -r 42fa9c3d1cce cmd/wmii/client.c
--- a/cmd/wmii/client.c Sun Jun 17 17:01:47 2007 -0400
+++ b/cmd/wmii/client.c Sun Jun 17 20:16:30 2007 -0400
@@ -533,7 +533,7 @@ updatemwm(Client *c) {
         int n;
 
         n = getproperty(&c->w, "_MOTIF_WM_HINTS", "_MOTIF_WM_HINTS", &real,
- 2L, (uchar**)&ret, 1L);
+ 2L, (void*)&ret, 1L);
 
         if(n == 0) {
                 c->borderless = 0;
diff -r 20e5fa86eafb -r 42fa9c3d1cce cmd/wmii/x11.c
--- a/cmd/wmii/x11.c Sun Jun 17 17:01:47 2007 -0400
+++ b/cmd/wmii/x11.c Sun Jun 17 20:16:30 2007 -0400
@@ -274,7 +274,7 @@ winprotocols(Window *w) {
         Atom actual, delete;
         int i, n, protos;
 
- n = getproperty(w, "WM_PROTOCOLS", "ATOM", &actual, 0L, (uchar**)&protocols, 20L);
+ n = getproperty(w, "WM_PROTOCOLS", "ATOM", &actual, 0L, (void*)&protocols, 20L);
         if(n == 0)
                 return 0;
 
Received on Mon Jun 18 2007 - 02:17:36 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:19 UTC