From 91a05d01d2fdf347d65ee1050a4d529e71a318f7 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 6 Jan 2024 09:25:52 +1100 Subject: [PATCH] - Silence noisy line in resourcefile.h against GCC builds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from /home/mrichters/Repos/Raze/source/common/filesystem/include/fs_filesystem.h:12, from /home/mrichters/Repos/Raze/source/common/engine/filesystem.h:2, from /home/mrichters/Repos/Raze/source/common/utility/zstring.h:43, from /home/mrichters/Repos/Raze/source/common/platform/posix/i_system.h:14, from /home/mrichters/Repos/Raze/source/common/platform/posix/sdl/hardware.cpp:38: /home/mrichters/Repos/Raze/source/common/filesystem/include/resourcefile.h: In member function ‘int FileSys::FResourceFile::GetEntryNamespace(uint32_t)’: /home/mrichters/Repos/Raze/source/common/filesystem/include/resourcefile.h:180:43: warning: enumerated and non-enumerated type in conditional expression [-Wextra] 180 | return (entry < NumLumps) ? Entries[entry].Namespace : ns_hidden; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- source/common/filesystem/include/resourcefile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/filesystem/include/resourcefile.h b/source/common/filesystem/include/resourcefile.h index 7940e90e1..a23914444 100644 --- a/source/common/filesystem/include/resourcefile.h +++ b/source/common/filesystem/include/resourcefile.h @@ -177,7 +177,7 @@ public: int GetEntryNamespace(uint32_t entry) { - return (entry < NumLumps) ? Entries[entry].Namespace : ns_hidden; + return (entry < NumLumps) ? Entries[entry].Namespace : (int)ns_hidden; } int GetEntryResourceID(uint32_t entry)