]> git.llucax.com Git - software/eventxx.git/commit
Avoid a weird gcc warning when compiling with optimizations.
authorLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 21 Sep 2007 16:28:44 +0000 (13:28 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 21 Sep 2007 16:28:44 +0000 (13:28 -0300)
commita40aa4e85b7652886bda0669191a2185bfcbfc2d
tree7720736f9201664541f3eaaad777e237fffe2915
parent82c7b420703e0fe842d38cc571a260a8494d7bc2
Avoid a weird gcc warning when compiling with optimizations.

When compiling with -O (or greater) with gcc (4.1.2 at least), there where
some warnings about "dereferencing type-punned pointer will break
strict-aliasing rules". A temporary varible to hold the pointer in the
ugly cast fix it.
eventxx