Subject: error compiling sbin/atactl/atactl.c
To: None <current-users@netbsd.org>
From: Kurt Schreiner <Kurt.Schreiner@Uni-Mainz.DE>
List: current-users
Date: 11/20/1998 17:49:16
hi,

just got this one:

all ===> sbin/atactl
cc -O  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -c atactl.c
cc1: warnings being treated as errors
atactl.c: In function `device_identify':
atactl.c:277: warning: unused variable `i'
*** Error code 1

Stop.

this is on an ss20, btw.

the neccessary change in sbin/atactl/atactl.c seems to be the following:

--- sbin/atactl/atactl.c        Fri Nov 20 00:55:00 1998
+++ /tmp/atactl.c
                        Fri Nov 20 17:46:04 1998
@@ -274,8 +274,8 @@
        struct ataparams *inqbuf;
        struct atareq req;
        unsigned char inbuf[DEV_BSIZE];
-       int i;
 #if BYTE_ORDER == LITTLE_ENDIAN
+       int i;
        u_int16_t *p;
 #endif

-kurt