Skip to content

Commit

Permalink
games/vkquake: fix build on 32-bits
Browse files Browse the repository at this point in the history
./atomics.h:201:9: error: large atomic operation may incur significant performance penalty; the access size (8 bytes) exceeds the max lock-free size (4  bytes) [-Werror,-Watomic-alignment]
        return atomic_fetch_add (atomic, value);
               ^
/usr/include/stdatomic.h:354:2: note: expanded from macro 'atomic_fetch_add'
        atomic_fetch_add_explicit(object, operand, memory_order_seq_cst)
        ^
/usr/include/stdatomic.h:247:2: note: expanded from macro 'atomic_fetch_add_explicit'
        __c11_atomic_fetch_add(object, operand, order)
  • Loading branch information
pkubaj committed Feb 11, 2024
1 parent ed20da9 commit 054c6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/vkquake/Makefile
Expand Up @@ -28,7 +28,7 @@ ALL_TARGET= # empty

.include "${.CURDIR}/../quake-data/Makefile.include"

CFLAGS+= -DDATADIR='\"${Q1DIR}\"'
CFLAGS+= -DDATADIR='\"${Q1DIR}\"' -Wno-error=atomic-alignment

OPTIONS_DEFINE= USERDIRS WAVE FLAC MP3 VORBIS # OPUS
OPTIONS_RADIO= MODPLAYER
Expand Down

0 comments on commit 054c6d9

Please sign in to comment.