scsi_53c400.c break my PCem compilation

Support and general discussion.
BoisterousSleet75
Posts: 32
Joined: Fri 11 Aug, 2017 3:06 am
Contact:

scsi_53c400.c break my PCem compilation

Postby BoisterousSleet75 » Tue 03 Oct, 2017 12:39 am

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.
aka "bsleet75"
SarahWalker
Site Admin
Posts: 1325
Joined: Thu 24 Apr, 2014 4:18 pm

Re: scsi_53c400.c break my PCem compilation

Postby SarahWalker » Tue 03 Oct, 2017 4:48 pm

Typo. Fixed in rev 873.
BoisterousSleet75
Posts: 32
Joined: Fri 11 Aug, 2017 3:06 am
Contact:

Re: scsi_53c400.c break my PCem compilation

Postby BoisterousSleet75 » Tue 03 Oct, 2017 11:59 pm

SarahWalker wrote:Typo. Fixed in rev 873.

I know. but thanks for the fix!
aka "bsleet75"

Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 1 guest