Wireshark-bugs: [Wireshark-bugs] [Bug 7217] New: hdcp: fix clang warnings
Date: Mon, 30 Apr 2012 03:52:33 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7217

           Summary: hdcp: fix clang warnings
           Product: Wireshark
           Version: unspecified
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: wireshark@xxxxxxxxx


Build Information:
TShark 1.7.2 (SVN Rev 42344 from /trunk)

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 GLib 2.24.2, with libpcap, with libz 1.2.3.4, without
POSIX capabilities, without SMI, without c-ares, without ADNS, without Lua,
without Python, with GnuTLS 2.8.6, with Gcrypt 1.4.5, with MIT Kerberos,
without
GeoIP.

Running on Linux 2.6.32-5-amd64, with locale en_US.UTF-8, with libpcap version
1.1.1, with libz 1.2.3.4.

Built using gcc 4.4.5.

--
Dear all,

the attached patch fixes clang warnings for the hdcp dissector

packet-hdcp.c:175:1: warning: no previous prototype for 'sub_check_hdcp'
[-Wmissing-prototypes]

packet-hdcp.c:241:28: warning: request for implicit conversion from 'void *'
to 'struct hdcp_transaction_t *' not permitted in C++ [-Wc++-compat]

packet-hdcp.c:258:32: warning: request for implicit conversion from 'void *'
to 'struct hdcp_transaction_t *' not permitted in C++ [-Wc++-compat]

packet-hdcp.c:294:23: warning: request for implicit conversion from 'void *'
to 'struct hdcp_transaction_t *' not permitted in C++ [-Wc++-compat]

packet-hdcp.c:591:17: warning: cast discards '__attribute__((const))'
qualifier from pointer target type [-Wcast-qual]


Best regards,

   Martin

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