Subject: bswap16(v); in bus_space.c
To: None <port-mac68k@netbsd.org>
From: John Klos <john@ziaspace.com>
List: port-mac68k
Date: 09/14/2006 11:14:07
Hi,

In netbsd-4, in mac68k/mac68k/bus_space.c, bswap16(v); on line 418, I'm 
guessing, gets reduced to nothing, and gcc complains:

         v = mac68k_bsrs2_gen(t, h, offset);
         if (h->swapped) {
                 bswap16(v);
         }


../../../../arch/mac68k/mac68k/bus_space.c: In function 'mac68k_bsr2_gen':
../../../../arch/mac68k/mac68k/bus_space.c:418: warning: statement with no effect
*** Error code 1

Since this code isn't ever going to run on anything but mac68k which, of 
course, is big endian, is there any reason why this is in there?

John Klos
-- 
Today is the day that my destiny calls me!
   Meowth