From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14306 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Holland Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2 2/3] use the correct attributes for ___errno_location Date: Sat, 29 Jun 2019 18:19:05 -0500 Message-ID: <20190629231906.64452-3-samuel@sholland.org> References: <20190629231906.64452-1-samuel@sholland.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="251253"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Samuel Holland To: musl@lists.openwall.com Original-X-From: musl-return-14321-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 30 01:19:38 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hhMd8-0013GP-AP for gllmg-musl@m.gmane.org; Sun, 30 Jun 2019 01:19:38 +0200 Original-Received: (qmail 18411 invoked by uid 550); 29 Jun 2019 23:19:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18115 invoked from network); 29 Jun 2019 23:19:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=wkoVkVlfOLq+F 3OHnc8AweNsVFvCJZF45kBmKbMbWrw=; b=y+qK14j2CZ4ZlXJSB3pOk9dh3Xws9 lmHwPQZEn/dxWZxlr9frwYxD38V5i++6tCotCIYa75AHQWjzmLu7EB6EMMKyZAgb rluykQSfNRuneGP/rlQabmpo6Z3a9TL0p3tQ0tfPeQDAty2yzzyVO0K8fHcRgxzN aX0xG5OMbkTv89ligF80t9txnKlIJ/CJtjHX+wOwTsT1x1BA2WmEBrme0qJF6r4d qDp8WypFAHCXTUnocezIiRt2xCD6dRUf8YEDg/rCvpUdP+vrsiv/uEU4CHGMR/tW /FDrlJOk4c0wgl5IX2MHifqrzySfIJjHwm6pWUyxHDWXlAd/ZoaPHZJlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=wkoVkVlfOLq+F3OHnc8AweNsVFvCJZF45kBmKbMbWrw=; b=xWuoVTxs j0wSlWiv8nla6Ot2B9zPaa/+Fw6xAQftZ+xwm09dp2hghBE/1bUFfYZQlJmzKNBi BrESfOL49ETszJQSQIbc5wv5jHl9COu6wq91+6UPgLiDPl6umAvVzUYmTJWfrxBg aLzUUIcuunXpM4TNKDCSUGcYeX2bIkworHKVK6FznYPS18E30OzncWnGbB5nQ7gX 0xlbngiPfEHb85EECiI8GH6+PiCuoCQ4crx0Iyoc7YAyzdra1j9eLPMJHhKF7YhK qQNOIyd/V06jKTMUMabx3qm4HNEwfjlik4ZDVIlGb+URiZhJzTRlH9pSf4EcWy2E 072gxmZP/nNXeA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvdefgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhh ohhllhgrnhgurdhorhhgqeenucfkphepjedtrddufeehrddugeekrdduhedunecurfgrrh grmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgnecuvehl uhhsthgvrhfuihiivgeptd X-ME-Proxy: X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190629231906.64452-1-samuel@sholland.org> Xref: news.gmane.org gmane.linux.lib.musl.general:14306 Archived-At: In the public header, __errno_location is declared with the "const" attribute, conditional on __GNUC__. Ensure that its internal alias has the same attributes. --- src/include/errno.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/errno.h b/src/include/errno.h index 54a38ff4..8ec49377 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -3,6 +3,9 @@ #include "../../include/errno.h" +#ifdef __GNUC__ +__attribute__((const)) +#endif hidden int *___errno_location(void); #undef errno -- 2.21.0