From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47452: 28.0.50; Compilation warnings in xterm.c Date: Sun, 28 Mar 2021 17:05:06 +0200 Message-ID: <87ft0fqpy5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26153"; mail-complaints-to="usenet@ciao.gmane.io" To: 47452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 17:06:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQWzS-0006gu-TN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 17:06:11 +0200 Original-Received: from localhost ([::1]:39088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQWzR-0004wI-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 11:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQWzK-0004vT-L1 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 11:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQWzK-0004Ya-DY for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 11:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQWzK-0005CO-74 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 11:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2021 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47452 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161694392119932 (code B ref -1); Sun, 28 Mar 2021 15:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Mar 2021 15:05:21 +0000 Original-Received: from localhost ([127.0.0.1]:46772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQWyf-0005BQ-Dm for submit@debbugs.gnu.org; Sun, 28 Mar 2021 11:05:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQWyd-0005BI-Jp for submit@debbugs.gnu.org; Sun, 28 Mar 2021 11:05:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQWyZ-0004eQ-Pw for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 11:05:18 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:46384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQWyX-0003vM-OI for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 11:05:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/NKgathtNzqYShcNZxGmurqRSDP581c2HZZhVD/kwGg=; b=uG0NGuDK23O52n6LOpBYTZm0oi /XXyv9Ji5FVuZu3oPNKXiH4+EAhjKaHvkSw+ZkkBo6dGGJdpqWd4NLN6b7xnbGrSu4F+lLrS6/8dj D6nquQFwCzRgsiEM+Kxaqab1vBVZi6SZIYPRw4Bt+6sUP13NSbjGYKkWmn/LdKF2fAFI=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQWyS-0003XF-Nv for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 17:05:11 +0200 X-Now-Playing: The Style Council's _The Complete Adventures (2)_: "Boy Who Cried Wolf" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203179 Archived-At: This started happening on a Debian/bullseye machine some days ago: xterm.c: In function =E2=80=98x_create_toolkit_scroll_bar=E2=80=99: xterm.c:6226:7: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6226 | XtSetArg (av[ac], XtNbeNiceToColormap, | ^~~~~~~~ xterm.c:6237:7: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6237 | XtSetArg (av[ac], XtNbeNiceToColormap, False); | ^~~~~~~~ xterm.c:6244:4: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6244 | XtSetArg (av[ac], XtNtopShadowPixel, pixel); | ^~~~~~~~ xterm.c:6250:4: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6250 | XtSetArg (av[ac], XtNbottomShadowPixel, pixel); xterm.c: In function =E2=80=98x_create_horizontal_toolkit_scroll_bar=E2=80= =99: xterm.c:6427:7: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6427 | XtSetArg (av[ac], XtNbeNiceToColormap, | ^~~~~~~~ xterm.c:6438:7: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6438 | XtSetArg (av[ac], XtNbeNiceToColormap, False); | ^~~~~~~~ xterm.c:6445:4: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6445 | XtSetArg (av[ac], XtNtopShadowPixel, pixel); | ^~~~~~~~ xterm.c:6451:4: warning: assignment discards =E2=80=98const=E2=80=99 qualif= ier from pointer target type [-Wdiscarded-qualifiers] 6451 | XtSetArg (av[ac], XtNbottomShadowPixel, pixel); | ^~~~~~~~ It does not happen on my other Debian/bullseye machine, which is confusing: Both are "apt update; apt upgraded" right now, so they should be very similar. >From the machine that has the warnings: In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll= bars) of 2021-03-28 built on stories Repository revision: cf607c262e15c873961fdfcced254e6f8e82f8d7 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid This is the one that doesn't have the warning: In GNU Emacs 28.0.50 (build 51, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, = cairo version 1.16.0) of 2021-03-28 built on xo Repository revision: cf607c262e15c873961fdfcced254e6f8e82f8d7 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid Ah, so the warning is when compiling without Gtk? Makes sense; I removed some libraries from the other machine for doing various tests the other day --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no