public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [committed arm/ilp32] aarch64: Fix bits/utmp.h for GCC 8
@ 2018-02-22 12:14 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2018-02-22 12:14 UTC (permalink / raw)
  To: GNU C Library, Steve Ellcey, Yuri Norov, Maxim Kuvyrkov; +Cc: nd

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

fixed a warning issue in the arm/ilp32 build, the branch is still based
on the 2.27 release.
---

The same suppression of -Wstringop-truncation warnings as in commit
7532837d7b03b3ca5b9a63d77a5bd81dd23f3d9c but for aarch64.

2018-02-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* sysdeps/unix/sysv/linux/aarch64/bits/utmp.h (struct utmp): Use
	__attribute_nonstring__.

[-- Attachment #2: ut.diff --]
[-- Type: text/x-patch, Size: 989 bytes --]

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h b/sysdeps/unix/sysv/linux/aarch64/bits/utmp.h
index 850517573e..027dceb82c 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-22 10:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 12:14 [committed arm/ilp32] aarch64: Fix bits/utmp.h for GCC 8 Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).