mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-21 08:01:03 +00:00
- 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:
parent
416941f159
commit
91a05d01d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue