mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix -Wtype-limits warnings and remove disabling of -Wtype-limits
This commit is contained in:
parent
5038b9aaec
commit
3993102e88
6 changed files with 20 additions and 18 deletions
|
@ -72,7 +72,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
// Lowest supported serialization version
|
||||
#define SER_FMT_VER_LOWEST 0
|
||||
|
||||
#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ)
|
||||
inline bool ser_ver_supported(s32 v) {
|
||||
return v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ;
|
||||
}
|
||||
|
||||
/*
|
||||
Misc. serialization functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue