Wireshark mailing list archives

Re: [Wireshark-commits] buildbot failure in Wireshark (development) on Ubuntu 14.04 x64


From: Pascal Quantin <pascal.quantin () gmail com>
Date: Mon, 28 Mar 2016 17:08:41 +0200

Hi Jörg,

2016-03-28 16:51 GMT+02:00 Joerg Mayer <jmayer () loplof de>:

On Mon, Mar 28, 2016 at 02:26:41PM +0000, buildbot-no-reply () wireshark org
wrote:
The Buildbot has detected a new failure on builder Ubuntu 14.04 x64
while building wireshark. Full details are available at:

http://buildbot.wireshark.org/wireshark-master/builders/Ubuntu%2014.04%20x64/builds/5897

../../../epan/wslua/taps_wslua.c: In function 'wslua_bacapp_to_table':
../../../epan/wslua/taps_wslua.c:43:93: error: variable 'v' set but not
used [-Werror=unused-but-set-variable]
 static void wslua_bacapp_to_table(lua_State* L, const void* p) { const
bacapp_info_value_t* v; v = (const bacapp_info_value_t*)p; lua_newtable(L);

Buildbot URL: http://buildbot.wireshark.org/wireshark-master/

Buildslave for this Build: ubuntu-14.04-x64

Build Reason: The SingleBranchScheduler scheduler named 'Gerrit'
triggered this build
Build Source Stamp: [branch master]
7e5dae90d65ed062f2d01c63174cc1c94850a19a
Blamelist: Jörg Mayer <jmayer () loplof de>

BUILD FAILED: failed make distcheck

OK, this is strange: I changed epan/wslua/make-taps.pl to not declare v
as _U_ (which
is obviously isn't: it's used in the next statement) and now we get a "set
but not used"
warning but not before? Btw, on my Clang (XCode) system I do not get this
warning/error.
Ideas what is going on here (compiler bug?)?


v is set, but does not seem to be used (this what gcc is complaining
about). Presumably marking the variable as unused was hiding this warning.
It appears that make-taps.pl was not working as expected with
packet-bacapp.h due tio the use of a const. I'm about to push a fix for
this.

Pascal.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: