From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: compiling with -Wwrite-strings Date: Mon, 9 Aug 2010 23:23:43 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281389535 8218 80.91.229.12 (9 Aug 2010 21:32:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 21:32:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 09 23:32:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiZx6-0003E4-J1 for ged-emacs-devel@m.gmane.org; Mon, 09 Aug 2010 23:32:12 +0200 Original-Received: from localhost ([127.0.0.1]:50258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiZpN-0006vy-8W for ged-emacs-devel@m.gmane.org; Mon, 09 Aug 2010 17:24:13 -0400 Original-Received: from [140.186.70.92] (port=56739 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiZpG-0006uk-9X for emacs-devel@gnu.org; Mon, 09 Aug 2010 17:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiZpF-0004t1-Ei for emacs-devel@gnu.org; Mon, 09 Aug 2010 17:24:06 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:40199) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiZpE-0004sk-4Z; Mon, 09 Aug 2010 17:24:04 -0400 Original-Received: by iwn10 with SMTP id 10so4780867iwn.0 for ; Mon, 09 Aug 2010 14:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=kBvUpToDVBXAf7CnBaFN8DIyR1+q+o20Pt4EYiVp7K4=; b=EOW2dtzMP4Lj9aUmpTUcLJhCEnqbUoWx72nJhFAbxy19SdertldH2NuO481dhG8MEf X06Wwt2+fXi09kcBfGpZvzPYEivmtimLMs5Di1HOEYGuBPv5jaHcCFId08uaGeMboxDY 9do8nlthQmQJXmn3lK5KxP85J08nUeKpxo3x4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=WZbJbKGfvSaqGfVfabP9RweABTbCL6X0AC6rHxB1d4a4pbWxRg0Q5JFNmh7+jXNoex aDgCRSZ31ipH6WpebCkRCMiasxozW6AOYDc8o5QyHHvtFQicxZF+DsaPCJTdLftIbuV4 1+uZ0X6KlK3PKL4xR9b8/d1wu/oaELB5elFSQ= Original-Received: by 10.231.162.2 with SMTP id t2mr11336658ibx.57.1281389043212; Mon, 09 Aug 2010 14:24:03 -0700 (PDT) Original-Received: by 10.231.162.11 with HTTP; Mon, 9 Aug 2010 14:23:43 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128510 Archived-At: On Mon, Aug 9, 2010 at 22:15, Dan Nicolaescu wrote: > Most are easy to fix: just use "const char*" instead of "char*" for > function arguments, variables, struct fields, etc. BTW: font.c: In function 'font_parse_xlfd': font.c:997: warning: assignment discards qualifiers from pointer target typ= e font.c:1000: warning: assignment discards qualifiers from pointer target ty= pe font.c:1007: warning: assignment discards qualifiers from pointer target ty= pe font.c: In function 'font_parse_fcname': font.c:1319: warning: assignment discards qualifiers from pointer target ty= pe font.c:1455: warning: assignment discards qualifiers from pointer target ty= pe font.c: In function 'font_unparse_fcname': font.c:1645: warning: assignment discards qualifiers from pointer target ty= pe > Help doing this would be appreciated. If it is still needed I'll try to tackle this once I'm back (Aug, 18). =C2=A0 =C2=A0 Juanma