From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115195 invoked by alias); 2 Aug 2019 08:44:22 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 115171 invoked by uid 10103); 2 Aug 2019 08:44:22 -0000 Date: Fri, 02 Aug 2019 08:44:00 -0000 Message-ID: <20190802084422.115170.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/ilp32] aarch64: Fix bits/utmp.h for GCC 8 X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/ilp32 X-Git-Oldrev: 7763f691a7279c5e9a542072fe6712c41482e31a X-Git-Newrev: ade8b2da9bd13685551f62fdf21fc054843851f4 X-SW-Source: 2019-q3/txt/msg00181.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ade8b2da9bd13685551f62fdf21fc054843851f4 commit ade8b2da9bd13685551f62fdf21fc054843851f4 Author: Szabolcs Nagy Date: Wed Feb 21 15:51:22 2018 +0000 aarch64: Fix bits/utmp.h for GCC 8 The same suppression of -Wstringop-truncation warnings as in commit 7532837d7b03b3ca5b9a63d77a5bd81dd23f3d9c but for aarch64. 2018-02-21 Szabolcs Nagy * sysdeps/unix/sysv/linux/aarch64/bits/utmp.h (struct utmp): Use __attribute_nonstring__. Diff: --- sysdeps/unix/sysv/linux/aarch64/bits/utmp.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h index 8505175..027dceb 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h @@ -61,10 +61,13 @@ struct utmp { short int ut_type; /* Type of login. */ pid_t ut_pid; /* Process ID of login process. */ - char ut_line[UT_LINESIZE]; /* Devicename. */ + char ut_line[UT_LINESIZE] + __attribute_nonstring__; /* Devicename. */ char ut_id[4]; /* Inittab ID. */ - char ut_user[UT_NAMESIZE]; /* Username. */ - char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ + char ut_user[UT_NAMESIZE] + __attribute_nonstring__; /* Username. */ + char ut_host[UT_HOSTSIZE] + __attribute_nonstring__; /* Hostname for remote login. */ struct exit_status ut_exit; /* Exit status of a process marked as DEAD_PROCESS. */ /* The ut_session and ut_tv fields must be the same size when compiled