scsi_53c400.c break my PCem compilation

Support and general discussion.
Post Reply
User avatar
BoisterousSleet75
Posts: 39
Joined: Fri 11 Aug, 2017 3:06 am

scsi_53c400.c break my PCem compilation

Post by BoisterousSleet75 »

Hi.

I've tried compile PCem rev 872 using MinGW (not MSYS2), but it gave me an error:

Code: Select all

gcc.exe -O3 -march=i686 -fomit-frame-pointer -msse2 -mstackrealign -Wall -Werror -fno-strict-aliasing -DUSE_NETWORKING -c scsi_53c400.c
scsi_53c400.c: In function 'ncr5380_reset':
scsi_53c400.c:110:23: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
  memset(ncr, 0, sizeof(ncr));
                       ^
cc1.exe: all warnings being treated as errors
make: *** [scsi_53c400.o] Error 1
make: *** Waiting for unfinished jobs....
I'm also using Makefile.mingw-network.

Is this bug or something else?

Thanks.
Long Live Marxism-Leninism-Maoism! ☭
User avatar
SarahWalker
Site Admin
Posts: 1885
Joined: Thu 24 Apr, 2014 4:18 pm

Re: scsi_53c400.c break my PCem compilation

Post by SarahWalker »

Typo. Fixed in rev 873.
User avatar
BoisterousSleet75
Posts: 39
Joined: Fri 11 Aug, 2017 3:06 am

Re: scsi_53c400.c break my PCem compilation

Post by BoisterousSleet75 »

SarahWalker wrote:Typo. Fixed in rev 873.
I know. but thanks for the fix!
Long Live Marxism-Leninism-Maoism! ☭
Post Reply