Author: tjansen Date: Fri Oct 16 11:30:30 2009 New Revision: 1212 Log: Fixed a warning: iw.c: In function ‘pisa_get_ifnetmask’: iw.c:204: warning: dereferencing pointer ‘addr’ does break strict-aliasing rules iw.c:203: note: initialized from here Since the line causing the error is just a debug print, removing the line is the easiest way to fix it. Modified: trunk/libpisa/iw.c Modified: trunk/libpisa/iw.c ============================================================================== --- trunk/libpisa/iw.c Fri Oct 16 10:37:27 2009 (r1211) +++ trunk/libpisa/iw.c Fri Oct 16 11:30:30 2009 (r1212) @@ -201,7 +201,6 @@ } addr = (struct sockaddr_in *)&ifr.ifr_addr; - PISA_DEBUG(PL_IW, "addr = %s\n", (char *)inet_ntoa(addr->sin_addr)); return addr->sin_addr.s_addr; }