Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa try a different style of __used.



details:   https://anonhg.NetBSD.org/src/rev/f1080371dc50
branches:  trunk
changeset: 826910:f1080371dc50
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 05 02:59:21 2017 +0000

description:
try a different style of __used.

diffstat:

 sys/lib/libsa/loadfile_elf32.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e40299884c3b -r f1080371dc50 sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c    Thu Oct 05 01:32:46 2017 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c    Thu Oct 05 02:59:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.42 2017/10/04 22:00:40 christos Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.43 2017/10/05 02:59:21 christos Exp $ */
 
 /*
  * Copyright (c) 1997, 2008, 2017 The NetBSD Foundation, Inc.
@@ -489,7 +489,7 @@
 ELFNAMEEND(loadfile)(int fd, Elf_Ehdr *elf, u_long *marks, int flags)
 {
        Elf_Phdr *phdr;
-       int i, first __used;
+       int i, first;
        ssize_t sz;
        Elf_Addr minp = ~0, maxp = 0, pos = 0, elfp = 0;
        u_long offset = marks[MARK_START];
@@ -497,6 +497,8 @@
 
        /* some ports dont use the offset */
        (void)&offset;
+       /* for ports that define progress to nothing */
+       (void)&first;
 
        /* have not seen a data segment so far */
        marks[MARK_DATA] = 0;



Home | Main Index | Thread Index | Old Index