From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id F20BB3858D1E; Tue, 13 Sep 2022 23:56:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F20BB3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663113384; bh=ZJyJIDNE0RYdvqVqhpWAgXBhaogtuxnqmQWVfzD2xAE=; h=From:To:Subject:Date:From; b=tZRZxWgYdjWrDJDocPHtrM91Ht8RkqHu6CxkhfkVus4UHKY4gSgxqoMumryp/jkgV nOaW2Glqe1rBB0+U3RUlzOaIi0oTR0DCbWKupMbtnyEyf1S2vLRAs9C9/sBtrIcLnx LcBIhcPA02PzEH3m2TdioUbkStSdwEuw6a0i+RsQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] m2decl.cc DeclareKnownVariable to use const char parameter. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: d5e34c12f818aa29b435adec060271eb4d0736a9 X-Git-Newrev: 6ca7afc4836ea0dde57edcca9db0e1f5b8d9e7c6 Message-Id: <20220913235624.F20BB3858D1E@sourceware.org> Date: Tue, 13 Sep 2022 23:56:24 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6ca7afc4836ea0dde57edcca9db0e1f5b8d9e7c6 commit 6ca7afc4836ea0dde57edcca9db0e1f5b8d9e7c6 Author: Gaius Mulley Date: Wed Sep 14 00:54:57 2022 +0100 m2decl.cc DeclareKnownVariable to use const char parameter. Avoid generating a warning by using const char * parameter. gcc/m2/ ChangeLog: * gm2-gcc/m2decl.cc (DeclareKnownVariable): Use const char * parameter. * gm2-gcc/m2decl.h (DeclareKnownVariable): Use const char * parameter. Signed-off-by: Gaius Mulley Diff: --- gcc/m2/gm2-gcc/m2decl.cc | 2 +- gcc/m2/gm2-gcc/m2decl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/m2/gm2-gcc/m2decl.cc b/gcc/m2/gm2-gcc/m2decl.cc index 86bd3ee48ff..c3b5c892dc0 100644 --- a/gcc/m2/gm2-gcc/m2decl.cc +++ b/gcc/m2/gm2-gcc/m2decl.cc @@ -76,7 +76,7 @@ m2decl_DeclareM2linkGlobals (location_t location, /* DeclareKnownVariable declares a variable to GCC. */ tree -m2decl_DeclareKnownVariable (location_t location, char *name, tree type, +m2decl_DeclareKnownVariable (location_t location, const char *name, tree type, int exported, int imported, int istemporary, int isglobal, tree scope) { diff --git a/gcc/m2/gm2-gcc/m2decl.h b/gcc/m2/gm2-gcc/m2decl.h index 9b9805aaec4..72eb005bc2c 100644 --- a/gcc/m2/gm2-gcc/m2decl.h +++ b/gcc/m2/gm2-gcc/m2decl.h @@ -60,7 +60,7 @@ EXTERN tree m2decl_BuildParameterDeclaration (location_t location, char *name, tree type, int isreference); EXTERN tree m2decl_DeclareKnownConstant (location_t location, tree type, tree value); -EXTERN tree m2decl_DeclareKnownVariable (location_t location, char *name, +EXTERN tree m2decl_DeclareKnownVariable (location_t location, const char *name, tree type, int exported, int imported, int istemporary, int isglobal, tree scope);