Wireshark-bugs: [Wireshark-bugs] [Bug 6738] New: compiler warning for epan/wslua/wslua_pinfo.c
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6738
Summary: compiler warning for epan/wslua/wslua_pinfo.c
Product: Wireshark
Version: SVN
Platform: x86-64
OS/Version: OpenBSD
Status: NEW
Severity: Normal
Priority: Low
Component: Wireshark
AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
ReportedBy: njtaylor0101@xxxxxxxxx
Build Information:
wireshark 1.7.1-SVN-40442 (SVN Rev Unknown from unknown)
Copyright 1998-2012 Gerald Combs <gerald@xxxxxxxxxxxxx> 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+ 3.2.3, with Cairo 1.10.2, with Pango 1.29.4, with
GLib 2.30.2, with libpcap (version unknown), with libz 1.2.3, without POSIX
capabilities, with SMI 0.4.8, with c-ares 1.7.5, with Lua 5.1, with Python
2.7.1, with GnuTLS 2.12.16, with Gcrypt 1.4.6, with Heimdal Kerberos, with
GeoIP, with PortAudio V19-devel (built Dec 9 2011 02:30:18), without AirPcap.
Running on OpenBSD 5.0, without locale, with OpenBSD libpcap, with libz 1.2.3,
GnuTLS 2.12.16, Gcrypt 1.4.6.
--
Patch applied to allow building on OpenBSD...
--- epan/wslua/wslua_pinfo.c.orig Thu Jan 12 15:10:42 2012
+++ epan/wslua/wslua_pinfo.c Thu Jan 12 17:43:47 2012
@@ -95,7 +95,7 @@ WSLUA_METAMETHOD NSTime__tostring(lua_State* L) {
if (!nstime) return 0;
- lua_pushstring(L,ep_strdup_printf("%ld.%09d", nstime->secs, nstime->nsecs));
+ lua_pushstring(L,ep_strdup_printf("%ld.%09d", (long) nstime->secs,
nstime->nsecs));
WSLUA_RETURN(1); /* The string representing the nstime. */
}
nstime->secs is type int, using %ld expects a long type. OpenBSD compiler
issues a warning which causes the compile to fail.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.