ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Qt warning on Windows build.

From: "Maynard, Christopher" <Christopher.Maynard@xxxxxxx>
Date: Mon, 23 Nov 2020 19:38:26 +0000
> From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf Of Anders Broman via Wireshark-dev
> Sent: Thursday, November 19, 2020 3:50 AM
> To: wireshark-dev@xxxxxxxxxxxxx
> Cc: Anders Broman <anders.broman@xxxxxxxxxxxx>
> Subject: [Wireshark-dev] Qt warning on Windows build.
>
> Hi,
> Currently there is one Warnimg produced for the Windows build
> C:\Development\ewireshark\trunk\ui\qt\widgets\byte_view_text.cpp(187,38): warning C4996: 'QFont::ForceIntegerMetrics': was declared deprecated [C:\Development\wsbuild64\ui\qt\qtui.vcxproj]
>
> Regards
> Anders
>

And after upgrading to Qt 5.15.2, there are more warnings, and since at least 2 of them are treated as errors, the build now fails:

Build FAILED.

       "D:\wireshark\builds\win64\master\Wireshark.sln" (default target) (1) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj.metaproj" (default
       target) (44) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj" (default target) (
       120) ->
       (ClCompile target) ->
         D:\wireshark\src\master\ui\qt\widgets\byte_view_text.cpp(187,38): warn
       ing C4996: 'QFont::ForceIntegerMetrics': was declared deprecated [D:\wir
       eshark\builds\win64\master\ui\qt\qtui.vcxproj]


       "D:\wireshark\builds\win64\master\Wireshark.sln" (default target) (1) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj.metaproj" (default
       target) (44) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj" (default target) (
       120) ->
         D:\wireshark\src\master\ui\qt\packet_list.cpp(794,46): warning C4996:
       'Qt::MidButton': MidButton is deprecated. Use MiddleButton instead [D:\w
       ireshark\builds\win64\master\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\packet_list.cpp(794,64): warning C4996:
       'Qt::MidButton': MidButton is deprecated. Use MiddleButton instead [D:\w
       ireshark\builds\win64\master\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\print_dialog.cpp(139,32): warning C4996:
        'QPrinter::pageRect': Use pageLayout().paintRectPixels(resolution()) in
       stead. [D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\print_dialog.cpp(174,55): warning C4996:
        'QPrinter::pageRect': Use pageLayout().paintRectPixels(resolution()) in
       stead. [D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\print_dialog.cpp(176,21): warning C4996:
        'QPrinter::pageRect': Use pageLayout().paintRectPixels(resolution()) in
       stead. [D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\print_dialog.cpp(236,24): warning C4996:
        'QPrinter::pageRect': Use pageLayout().paintRectPixels(resolution()) in
       stead. [D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj]


       "D:\wireshark\builds\win64\master\Wireshark.sln" (default target) (1) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj.metaproj" (default
       target) (44) ->
       "D:\wireshark\builds\win64\master\ui\qt\qtui.vcxproj" (default target) (
       120) ->
       (ClCompile target) ->
         D:\wireshark\src\master\ui\qt\packet_list.cpp(794,46): error C2220: th
       e following warning is treated as an error [D:\wireshark\builds\win64\ma
       ster\ui\qt\qtui.vcxproj]
         D:\wireshark\src\master\ui\qt\print_dialog.cpp(139,32): error C2220: t
       he following warning is treated as an error [D:\wireshark\builds\win64\m
       aster\ui\qt\qtui.vcxproj]

    7 Warning(s)
    2 Error(s)

- Chris






CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited.