From b9f045afb8c88aa16d1513455ef3d3fc0e123c96 Mon Sep 17 00:00:00 2001 From: oxmox Date: Fri, 3 Mar 2023 05:55:04 +0100 Subject: [PATCH] dp_doom: silence warning about empty translation unit on little endian --- src/dp_doom/linuxdoom-1.10/m_swap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dp_doom/linuxdoom-1.10/m_swap.c b/src/dp_doom/linuxdoom-1.10/m_swap.c index 1929bd8..08e102b 100644 --- a/src/dp_doom/linuxdoom-1.10/m_swap.c +++ b/src/dp_doom/linuxdoom-1.10/m_swap.c @@ -46,7 +46,9 @@ unsigned long SwapLONG( unsigned long x) | ((x<<24) & 0xff000000); } - +#else +// To silence warning: ISO C forbids an empty translation unit [-Wpedantic] +__attribute__((used))static void foo() {} #endif