From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: GCC, Objective-C and C99 Date: Thu, 27 Aug 2020 23:24:01 +0200 (CEST) Message-ID: <20200827212359.GE53184@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27337"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 27 23:24:55 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kBPOA-0006ye-F6 for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Aug 2020 23:24:54 +0200 Original-Received: from localhost ([::1]:39924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBPO9-0007hH-Ak for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Aug 2020 17:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBPNS-0007BR-4k for emacs-devel@gnu.org; Thu, 27 Aug 2020 17:24:10 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBPNP-0007My-Ru for emacs-devel@gnu.org; Thu, 27 Aug 2020 17:24:09 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id D042D736 for ; Thu, 27 Aug 2020 23:24:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1598563444; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; l=774; bh=09jJETnSJAiYMe4KVmwL4SInpA7WVGHCQS8y0Mf9a9k=; b=cs7d3SSRCfmzBc6YgmTgUL76n1TrTZaJ2q+7LpLJPcaeJEgwHWEaixLT731CiPVO oEnXEh8MKjtdAYlLrqCzNHU1hgMqf9lATT5VEjBox4gjGrDi9F0MQbNtP/eJjNKnxo+ KarItsSm7YYALs1AxNbBksbdITgeWQihjYh7c8QVwguQ5fyK+UN6Cb1nySi48zEVmHm +dcuTKmmm+qK1wTyEbyrG1xmVaKI5F0AyDP0bjRfXa7CpjBm+40GUUyH6dclcLsuS58 Tzxc5catIcKDDsKnETr9BNI8kIVvGlVWC8CLVGYVhCXEFxGXNzg4J2IgzA+H/jRm79F ccl+tbN+BA== Original-Received: by smtp.mailfence.com with ESMTPA for ; Thu, 27 Aug 2020 23:24:00 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 9E1C42024E26B2; Thu, 27 Aug 2020 22:23:59 +0100 (BST) Mail-Followup-To: Alan Third , Emacs-Devel devel Content-Disposition: inline X-ContactOffice-Account: com:241649512 Received-SPF: pass client-ip=212.3.242.97; envelope-from=alan@idiocy.org; helo=mailout-l3b-97.contactoffice.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/27 17:24:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254338 Archived-At: I've pushed a new test into scratch/ns-gitlab-ci that runs a build against GNUstep on emba, however it's failing. I get this error: nsterm.m: In function '-[EmacsView insertText:]': nsterm.m:6636:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (NSUInteger i = 0; i < len; i++) ^~~ Now, as far as I can tell all I have to do is add -std=c99 when compiling Objective C, but I'm really not sure where to add it. In a test I added it to CFLAGS when I configured, and that worked, but that doesn't seem like a proper fix. What's really odd is that I never had this problem when I built on a VM based off Debian Jessie, but I now do with the Debian Stretch Docker image. I guess something's changed with GCC. -- Alan Third