Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add an __unused attribute to the variable in the __l...



details:   https://anonhg.NetBSD.org/src/rev/fc5fee086574
branches:  trunk
changeset: 543326:fc5fee086574
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 23 04:50:18 2003 +0000

description:
Add an __unused attribute to the variable in the __link_set_make_entry()
macro.

diffstat:

 sys/sys/cdefs_aout.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 6c4724afea52 -r fc5fee086574 sys/sys/cdefs_aout.h
--- a/sys/sys/cdefs_aout.h      Sun Feb 23 04:32:05 2003 +0000
+++ b/sys/sys/cdefs_aout.h      Sun Feb 23 04:50:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs_aout.h,v 1.12 2002/12/05 05:47:24 simonb Exp $   */
+/*     $NetBSD: cdefs_aout.h,v 1.13 2003/02/23 04:50:18 simonb Exp $   */
 
 /*
  * Written by J.T. Conklin <jtc%wimsey.com@localhost> 01/17/95.
@@ -70,7 +70,8 @@
 
 #ifndef __lint__
 #define        __link_set_make_entry(set, sym, type)                           \
-       static void const * const __link_set_##set##_sym_##sym = &sym;  \
+       static void const * const                                       \
+           __link_set_##set##_sym_##sym __unused = &sym;               \
        __asm(".stabs \"___link_set_" #set "\", " #type ", 0, 0, _" #sym)
 #else
 #define        __link_set_make_entry(set, sym, type)                           \



Home | Main Index | Thread Index | Old Index