all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: 23758@debbugs.gnu.org
Subject: bug#23758: 25.1.50; Bogus warning from -Wwrite-strings
Date: Sun, 12 Jun 2016 15:56:32 -0400	[thread overview]
Message-ID: <83ef94f9-6034-6ac3-c9f8-ecb5793afc02@cornell.edu> (raw)

I'm getting an "assignment discards ‘const’ qualifier from pointer
target type" warning in the Cygwin-w32 build because of the following
code in w32fns.c:

char *type_CtrlAlt = NULL;
[...]
type_CtrlAlt = "bB";

This warning goes away if I remove -Wwrite-strings from the enabled 
compiler warnings.  Is this a compiler bug, or is there really something 
wrong with the code above that should warrant a warning?


In GNU Emacs 25.1.50.11 (x86_64-unknown-cygwin)
  of 2016-06-12 built on moufang
Repository revision: eacdc9eb6c89346fb72535632a1c65f6483b639f
Windowing system distributor 'Microsoft Corp.', version 10.0.10586

Configured using:
  'configure 'CFLAGS=-g3 -O0' --with-w32'






             reply	other threads:[~2016-06-12 19:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-12 19:56 Ken Brown [this message]
2016-06-12 20:01 ` bug#23758: 25.1.50; Bogus warning from -Wwrite-strings Noam Postavsky
2016-06-12 21:45   ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ef94f9-6034-6ac3-c9f8-ecb5793afc02@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=23758@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.