Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on armv8 gcc version 8.3.0 #1

Open
clort81 opened this issue Feb 27, 2020 · 0 comments
Open

Build error on armv8 gcc version 8.3.0 #1

clort81 opened this issue Feb 27, 2020 · 0 comments

Comments

@clort81
Copy link

clort81 commented Feb 27, 2020

In file included from memmap.cpp:2665:
getset.h: In function ‘uint8 S9xGetByte(uint32)’:
getset.h:82:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) GetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘uint16 S9xGetWord(uint32)’:
getset.h:177:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) GetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘void S9xSetByte(uint8, uint32)’:
getset.h:288:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) SetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘void S9xSetWord(uint16, uint32)’:
getset.h:415:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) SetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘uint8* GetBasePointer(uint32)’:
getset.h:520:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) GetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘uint8* S9xGetMemPointer(uint32)’:
getset.h:556:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) GetAddress)
                   ^~~~~~~~~~
getset.h: In function ‘void S9xSetPCBase(uint32)’:
getset.h:607:19: error: cast from ‘uint8*’ {aka ‘unsigned char*’} to ‘int’ loses precision [-fpermissive]
     switch ((int) GetAddress)
                   ^~~~~~~~~~
make: *** [<builtin>: memmap.o] Error 1

What do you think is proper fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant