Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 6227] New: fix build error in gtk/rtp_analysis.c

Date: Tue, 9 Aug 2011 09:30:53 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6227

           Summary: fix build error in gtk/rtp_analysis.c
           Product: Wireshark
           Version: SVN
          Platform: x86
        OS/Version: Gentoo
            Status: NEW
          Severity: Enhancement
          Priority: Low
         Component: TShark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: toralf.foerster@xxxxxx


Build Information:
tfoerste@n22 ~/devel/wireshark $ svn info
Path: .
URL: https://anonsvn.wireshark.org/wireshark/trunk
Repository Root: https://anonsvn.wireshark.org/wireshark
Repository UUID: f5534014-38df-0310-8fa8-9805f1628bb7
Revision: 38425
Node Kind: directory
Schedule: normal
Last Changed Author: etxrab
Last Changed Rev: 38425
Last Changed Date: 2011-08-09 15:08:20 +0200 (Tue, 09 Aug 2011)

--
Without the attached patch I get under a stable Gentoo (gcc: Gentoo 4.4.5 p1.2,
pie-0.4.5) :

...
cc1: warnings being treated as errors
rtp_analysis.c: In function ‘rtp_packet_save_payload’:
rtp_analysis.c:715: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:740: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c: In function ‘copy_file’:
rtp_analysis.c:2271: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:2274: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:2277: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:2280: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:2283: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
rtp_analysis.c:2286: error: ignoring return value of ‘fwrite’, declared with
attribute warn_unused_result
make[2]: *** [libui_a-rtp_analysis.o] Error 1
make[2]: Leaving directory `/home/tfoerste/devel/wireshark/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tfoerste/devel/wireshark'
make: *** [all] Error 2

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.