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

macOS Ventura (13.5.1) make errors #32

Open
yvan1990 opened this issue Sep 3, 2023 · 2 comments
Open

macOS Ventura (13.5.1) make errors #32

yvan1990 opened this issue Sep 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yvan1990
Copy link

yvan1990 commented Sep 3, 2023

Describe your bug here. And how to reproduce it.

Make errors:

cc -c -O2 -fno-strict-aliasing -Werror  -I/usr/local/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 -I. -Wno-strict-prototypes smb1/smb1_00.c -o smb1/smb1_00.o
smb1/smb1_00.c:963:12: error: result of comparison of constant 7 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    if (v5 < 7)
        ~~ ^ ~
1 error generated.
make: *** [smb1/smb1_00.o] Error 1

What is your build target?

Mac

@yvan1990 yvan1990 added the bug Something isn't working label Sep 3, 2023
@M0REKZ
Copy link

M0REKZ commented Sep 28, 2023

Try changing the compiler to gcc (installed from brew), that worked for me

@cdeletre
Copy link

cdeletre commented Dec 4, 2023

Not a nice fix but you can remove the -Werror in Makefile (line 7) to get it built on MacOS Ventura (with clang)

CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -fno-strict-aliasing -Werror )

becomes

CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -fno-strict-aliasing )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants