git: 054c6d9fdca4 - main - games/vkquake: fix build on 32-bits

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:53 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=054c6d9fdca47dda2bc2b97c540cc459e90a5190

commit 054c6d9fdca47dda2bc2b97c540cc459e90a5190
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-09 12:22:57 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:53 +0000

    games/vkquake: fix build on 32-bits
    
    ./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)
---
 games/vkquake/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games/vkquake/Makefile b/games/vkquake/Makefile
index eb07ab9109c7..f225c2380fb2 100644
--- a/games/vkquake/Makefile
+++ b/games/vkquake/Makefile
@@ -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