Wireshark-bugs: [Wireshark-bugs] [Bug 9613] New: shadow warning for "rand" in wmem_test.c on OS

Date: Sat, 04 Jan 2014 21:11:30 +0000
Bug ID 9613
Summary shadow warning for "rand" in wmem_test.c on OS X when using jhbuild
Classification Unclassified
Product Wireshark
Version SVN
Hardware x86
OS Mac OS X 10.8
Status UNCONFIRMED
Severity Trivial
Priority Low
Component Wireshark
Assignee [email protected]
Reporter [email protected]

Build Information:
wireshark 1.11.3 (SVN Rev 54596 from /trunk)

Copyright 1998-2014 Gerald Combs <[email protected]> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.24.21, with Cairo 1.12.16, with Pango 1.36.0,
with
GLib 2.38.0, with libpcap, with libz 1.2.5, without POSIX capabilities, without
SMI, without c-ares, without ADNS, without Lua, without Python, without GnuTLS,
without Gcrypt, with MIT Kerberos, without GeoIP, without PortAudio, with
AirPcap.

Running on Mac OS X 10.8.5, build 12F45 (Darwin 12.5.0), with locale
en_US.UTF-8, with libpcap version 1.1.1, with libz 1.2.5, without AirPcap.
      Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz

Built using llvm-gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
2336.11.00).

--
When using jhbuild environment on OS X building wmem_test.c fails with:

>   CC       wmem_test.o
> cc1: warnings being treated as errors
> wmem_test.c: In function ‘wmem_test_tree’:
> wmem_test.c:790: warning: declaration of ‘rand’ shadows a global declaration
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdlib.h:176: warning: shadowed declaration is here
> make[3]: *** [wmem_test.o] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2


You are receiving this mail because:
  • You are watching all bug changes.