- Silence noisy line in resourcefile.h against GCC builds.

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;
      |                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Mitchell Richters 2024-01-06 09:25:52 +11:00
parent 416941f159
commit 91a05d01d2

View file

@ -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)