https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4724
Summary: compilation fails due to problem in
packet-ess-template.c
Product: Wireshark
Version: SVN
Platform: x86-64
OS/Version: Red Hat
Status: NEW
Severity: Major
Priority: Low
Component: Wireshark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: slavak@xxxxxxxxx
Build Information:
svn rev. 32595.
Compiling on Red Hat Enterprise Linux AS release 4 (Nahant Update 3), gcc (GCC)
3.4.5 20051201 (Red Hat 3.4.5-2)
--
When trying to build Wireshark, compilation fails with the following error:
packet-ess-template.c: In function `proto_register_ess':
packet-ess-template.c:174: warning: dereferencing type-punned pointer will
break strict-aliasing rules
Changing the relevant line in packet-ess-template.c from:
uat_t *attributes_uat = uat_new("ESS Category Attributes",
sizeof(ess_category_attributes_t),
"ess_category_attributes",
TRUE,
(void**) &ess_category_attributes,
to:
uat_t *attributes_uat = uat_new("ESS Category Attributes",
sizeof(ess_category_attributes_t),
"ess_category_attributes",
TRUE,
(void*) &ess_category_attributes,
fixes the error and compiles Wireshark successfully.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.