You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2012/08/10 15:30:45 UTC

svn commit: r1371695 - /qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp

Author: astitcher
Date: Fri Aug 10 13:30:44 2012
New Revision: 1371695

URL: http://svn.apache.org/viewvc?rev=1371695&view=rev
Log:
NO-JIRA: Work around compiler warning from clang 3.1 about casting between type alignments

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp?rev=1371695&r1=1371694&r2=1371695&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp Fri Aug 10 13:30:44 2012
@@ -91,7 +91,7 @@ void SystemInfo::getLocalIpAddresses (ui
                 // * The scope id is illegal in URL syntax
                 // * Clients won't be able to use a link local address
                 //   without adding their own (potentially different) scope id
-                sockaddr_in6* sa6 = (sockaddr_in6*)(ifap->ifa_addr);
+                sockaddr_in6* sa6 = (sockaddr_in6*)((void*)ifap->ifa_addr);
                 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr)) break;
                 // Fallthrough
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org