netbase.cpp 334 - Warning while compiling. #2138

issue rricci2009 opened this issue on December 31, 2012
  1. rricci2009 commented at 12:47 PM on December 31, 2012: none

    netbase.cpp: In function ‘bool ConnectSocketDirectly(const CService&, SOCKET&, int)’: netbase.cpp:334: warning: dereferencing pointer ‘sockaddr.438’ does break strict-aliasing rules netbase.cpp:334: note: initialized from here

  2. Diapolo commented at 3:18 PM on December 31, 2012: none

    Which compiler are you using?

  3. rricci2009 commented at 6:40 PM on December 31, 2012: none

    Hi! I use gcc 4.4.5-8 on Debian.

    gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix

    Greetings for the new year!

    On Mon, 31 Dec 2012 07:18:57 -0800, Philip Kaufmann notifications@github.com wrote:

    Which compiler are you using?


    Reply to this email directly or view it on GitHub: #2138 (comment)

  4. laanwj commented at 2:55 PM on April 23, 2014: member

    Closing this; gcc 4.4 is ancient, and the warning does not appear in newer compilers.

  5. laanwj closed this on Apr 23, 2014

  6. HashUnlimited referenced this in commit fdca5e26af on Jul 2, 2018
  7. HashUnlimited referenced this in commit 57db2dc1bd on Jul 2, 2018
  8. HashUnlimited referenced this in commit 4632a0927b on Jul 2, 2018
  9. HashUnlimited referenced this in commit fb991a1b90 on Jul 3, 2018
  10. sidhujag referenced this in commit 0b85721acc on Jul 6, 2018
  11. owlhooter referenced this in commit 0d5426343d on Oct 11, 2018
  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 06:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me