Commit Graph

22 Commits

Author SHA1 Message Date
Bill Meier 9384bedb13 Revert SVN #46429 again (for now);
It appears that the compiler on
the OSX-10.5-x86 buildbot must be pretty old.

All the other *nix buildbot compilers do not
check the dummy param names used in the definition
of 'xxx' below to see if they are shadowing
anything.

void foo(tvbuff_t tvb, ...) {
  'void (*xxx)(tvbuff_t tvb, ....) = NULL;'
  ...
}

I do seem to remember reading that gcc once
had this issue but was fixed eventually.


svn path=/trunk/; revision=46430
2012-12-06 23:11:54 +00:00
Bill Meier c2639439e4 Enable [-Wshadow] as default for *nix compilers] (C only): 2nd try.
svn path=/trunk/; revision=46429
2012-12-06 22:15:21 +00:00
Guy Harris 123c134c24 And some other stuff moved to QtPrintSupport.
svn path=/trunk/; revision=46383
2012-12-05 00:50:51 +00:00
Guy Harris ef3d42ad74 Qt 5.0 appears to move the widgets out of Qt GUI to Qt Widgets; look for
QtWidgets and, if we find it, add its flags to CFLAGS and CXXFLAGS, so
that we find the include files for the widgets.  (If we don't find it,
we assume it's Qt 4.)

svn path=/trunk/; revision=46382
2012-12-04 23:37:49 +00:00
Bill Meier e5379cd38b Revert SVN #46380; i.e., remove -Wshadow & etc
svn path=/trunk/; revision=46381
2012-12-04 21:22:29 +00:00
Bill Meier 92f1fc7f49 OK: temporarily use -Wshadow and also -Wno-error=shadow
so we can get a complete list of the -Wshadow warnings
    seen by the buildbots.

svn path=/trunk/; revision=46380
2012-12-04 20:36:48 +00:00
Bill Meier 69de2d7767 Revert SVN #46376
Looks like this is not ready for prime time.

ToDo: determine why the OSX builds are finding issues that I don't see on Fedora.


svn path=/trunk/; revision=46378
2012-12-04 19:40:00 +00:00
Bill Meier 12f5acaefb Enable gcc -Wshadow for default *nix builds;
AFAIK, all GTK Wireshark non-dirty sources now compile
  without [-Wshadow] warnings.

(Altho I haven't tried the QT build or other possible
build variants), hopefully any remaining [-Wshadow] warnings for non-dirty
source can be fixed as they occur.

(Obviously this change can be reverted if there are many issues).

So: let's see if any of the automated builds break;  :)


svn path=/trunk/; revision=46376
2012-12-04 19:03:51 +00:00
Guy Harris bd976ae6c0 On UN*X, if an interface has a description, use it as the "friendly
name".  If it doesn't have a description, on OS X, use the System
Configuration framework to attempt to get a "friendly name" for
interfaces.

If a loopback device doesn't have a friendly name, give it "Loopback" as
the friendly name.

Move the "turn a CFString into a mallocated C string" routine into
common code, as it's used in more than one place.

svn path=/trunk/; revision=46131
2012-11-22 06:02:49 +00:00
Guy Harris b9e8e95ffe Get rid of an unused variable.
svn path=/trunk/; revision=46130
2012-11-22 05:50:47 +00:00
Guy Harris 24d4323da6 Assume, at least for now, that "Darwin" means "OS X"; don't bother
checking whether the relevant frameworks are available.  (An iOS port's
going to require a *lot* more work, and I don't know whether
Darwin-the-pure-OS even builds and runs any more.)

We don't need Core Services any more, as we're no longer using
Gestalt().  We just need Core Foundation for getting the OS version and
Application Services for firing up Web browser or file manager windows.

svn path=/trunk/; revision=46129
2012-11-22 05:46:49 +00:00
Evan Huus 4e3ddfc4c1 Fix autotools build - missed a few spots that needed updating for wmem.
svn path=/trunk/; revision=45748
2012-10-24 03:44:34 +00:00
Gerald Combs 17fdfce1e6 Add release dates for GTK+ 3.6.0 and GLib 2.34.0.
svn path=/trunk/; revision=45181
2012-09-27 20:48:23 +00:00
Gerald Combs 196dbce3d2 Add back extra packaging information if it's present.
svn path=/trunk/; revision=45112
2012-09-24 21:57:52 +00:00
Martin Mathieson 60fb63783a From Jim Young, bug 7745.
Add Makefile support for reordercap.

svn path=/trunk/; revision=45090
2012-09-24 10:23:20 +00:00
Jeff Morriss abc482e578 Revert r45018 and r45019: put config.h back in lemon.c and take _U_ back off
the compile line when building with cmake.

Put _U_'s definition in config.h when building with autofoo and on Windows.

svn path=/trunk/; revision=45034
2012-09-21 01:42:03 +00:00
Jeff Morriss 5ee932193f *NIX (autofoo and cmake) part of the fix for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6134 :

Make VERSION_MAJOR, VERSION_MINOR, and VERSION_MICRO available in config.h so
(e.g.) dissector writers can #if around them as necessary to make a piece of
code compile with different versions of Wireshark.  (Hopefully VERSION_MICRO
is not important in this respect!)

Windows also defines VERSION_EXTRA which can be used to help identify custom
builds; this is not done for these build methods (yet?).

svn path=/trunk/; revision=44986
2012-09-18 21:42:13 +00:00
Anders Broman 84c57e6eb6 From Pontus Fuchs.
new check for the configure script to disable the tool bar if
the nl80211.h is not good enough.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973

svn path=/trunk/; revision=44839
2012-09-10 13:15:02 +00:00
Guy Harris 87d4f06b2f At least with the Shiny New llvm-gcc in Xcode 4.4.1, there's no need to
add -no-cpp-precomp; I think the way the compiler handled precompiled
headers changed at some point.  Let's stop adding it; that would fix bug
5878.

svn path=/trunk/; revision=44816
2012-09-08 18:42:21 +00:00
Guy Harris 001dbcfc0b We no longer use Gestalt(), so there's no need to check for it.
We *do*, however, use CFPropertyListCreateWithStream(), so we need to
check for it, and, if we're able to use the OS X frameworks at all, use
CFPropertyListCreateFromStream() if we don't have
CFPropertyListCreateWithStream().

svn path=/trunk/; revision=44812
2012-09-08 07:46:56 +00:00
Anders Broman 342c344c1f From Pontus Fuchs:
Fall back to CMD_SET_WIPHY for older kernels. 

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973

svn path=/trunk/; revision=44768
2012-09-04 08:57:03 +00:00
Jörg Mayer fcb0307fae The name configure.in has been deprecated for many years.
Use configure.ac instead.

svn path=/trunk/; revision=44630
2012-08-23 11:11:24 +00:00