lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [lmi-commits] master 371ae7b 2/2: Suppress a gcc-10.0.0 warnin


From: Vadim Zeitlin
Subject: Re: [lmi] [lmi-commits] master 371ae7b 2/2: Suppress a gcc-10.0.0 warning for wx
Date: Sat, 6 Jun 2020 16:24:28 +0200

On Fri,  5 Jun 2020 16:14:48 -0400 (EDT) Greg Chicares 
<gchicares@sbcglobal.net> wrote:

GC> branch: master
GC> commit 371ae7b17bd0d03b76f9ecb03bae077126fd563b
GC> Author: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> 
GC>     Suppress a gcc-10.0.0 warning for wx
GC>     
GC>     The only line affected is 'testing.h:55':
GC>       (dlg ? typeid(*dlg) : typeid(T)).name());
GC> ---
GC>  pchfile_wx.hpp | 4 +++-
GC>  workhorse.make | 1 +
GC>  2 files changed, 4 insertions(+), 1 deletion(-)
GC> 
GC> diff --git a/pchfile_wx.hpp b/pchfile_wx.hpp
GC> index a6d9391..4876d67 100644
GC> --- a/pchfile_wx.hpp
GC> +++ b/pchfile_wx.hpp
GC> @@ -42,8 +42,10 @@
GC>  #   if 9 <= __GNUC__
GC>  #       pragma GCC diagnostic ignored "-Wdeprecated-copy"
GC>  #   endif // 9 <= __GNUC__
GC> -//  only 'strvararg.h:1048:19':
GC> +//  "-Wdouble-promotion": only 'strvararg.h:1048:19':
GC>  #   pragma GCC diagnostic ignored "-Wdouble-promotion"
GC> +//  "-Wduplicated-branches": only 'testing.h:55:38':
GC> +#   pragma GCC diagnostic ignored "-Wduplicated-branches"

 I wanted to fix these warnings in wxWidgets itself, but before fixing them
I wanted to reproduce them -- and totally failed to do it. I've tried
building the files including the specified headers using the same warning
options lmi uses, with both -O0 and, when this didn't work, -O2, with g++
10.1 from Debian Sid, but I just don't see any warnings at all.

 Could you please let me know which compiler command lines result in these
warnings appearing?

 Thanks in advance!
VZ

Attachment: pgp_1gZeOeKIv.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]