Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big endian support for BSP loader #1466

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Big endian support for clipnodes loader. Server now starts on big end…

ea0a59f
Select commit
Loading
Failed to load commit list.
Open

Big endian support for BSP loader #1466

Big endian support for clipnodes loader. Server now starts on big end…
ea0a59f
Select commit
Loading
Failed to load commit list.
Cirrus CI / freebsd-12-amd64 failed Oct 22, 2023 in 1m 22s

Task Summary

Instruction test failed in 00:08

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:04 clone
✅ 01:08 setup
❌ 00:08 test

static inline size_t Q_strncpy( char *dst, const char *src, size_t siz )
                                      ^
../engine/common/net_encode.c:1275:24: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                Q_strncpy( to_field, from_field, pField->size );
                                     ^~~~~~~~~~
../public/crtlib.h:126:56: note: passing argument to parameter 'src' here
static inline size_t Q_strncpy( char *dst, const char *src, size_t siz )
                                                       ^
2 warnings generated.

[ 88/109] Compiling engine/common/mod_bmodel.c
[ 89/109] Compiling engine/server/sv_main.c
../engine/common/mod_bmodel.c:1511:78: warning: format specifies type 'unsigned long long' but the argument has type 'fs_offset_t' (aka 'long') [-Wformat]
                Con_Printf( S_ERROR "%s has mismatched size (%llu should be %zu)\n", path, litdatasize, bmod->lightdatasize * 3 );
                                                             ~~~~                          ^~~~~~~~~~~
                                                             %ld
../engine/common/mod_bmodel.c:1566:79: warning: format specifies type 'unsigned long long' but the argument has type 'fs_offset_t' (aka 'long') [-Wformat]
                Con_Reportf( S_ERROR "%s has mismatched size (%llu should be %zu)\n", path, deluxdatasize, bmod->lightdatasize );
                                                              ~~~~                          ^~~~~~~~~~~~~
                                                              %ld
../engine/common/mod_bmodel.c:1925:6: error: expected value in expression
#elif
     ^
../engine/common/mod_bmodel.c:2450:57: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                                Con_Reportf( S_ERROR "bad surface %i from %d\n", i, bmod->numsurfaces );
                                                                          ~~        ^~~~~~~~~~~~~~~~~
                                                                          %zu
../engine/common/mod_bmodel.c:2897:19: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        return Q_memmem( lump, lumplen, "\"classname\"", sizeof( "\"classname\"" ) - 1 ) != NULL ? 1 : 0;
                         ^~~~
../public/crtlib.h:77:35: note: passing argument to parameter 'haystack' here
const byte *Q_memmem( const byte *haystack, size_t haystacklen, const byte *needle, size_t needlelen );
                                  ^
../engine/common/mod_bmodel.c:2897:34: warning: passing 'char [12]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
        return Q_memmem( lump, lumplen, "\"classname\"", sizeof( "\"classname\"" ) - 1 ) != NULL ? 1 : 0;
                                        ^~~~~~~~~~~~~~~
../public/crtlib.h:77:77: note: passing argument to parameter 'needle' here
const byte *Q_memmem( const byte *haystack, size_t haystacklen, const byte *needle, size_t needlelen );
                                                                            ^
../engine/common/mod_bmodel.c:2959:40: warning: passing 'const byte *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                else if( !Mod_LumpLooksLikeEntities( mod_base + header->lumps[LUMP_ENTITIES].fileofs, header->lumps[LUMP_ENTITIES].filelen ) &&
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../engine/common/mod_bmodel.c:2894:51: note: passing argument to parameter 'lump' here
static int Mod_LumpLooksLikeEntities( const char *lump, const size_t lumplen )
                                                  ^
../engine/common/mod_bmodel.c:2960:32: warning: passing 'const byte *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                         Mod_LumpLooksLikeEntities( mod_base + header->lumps[LUMP_PLANES].fileofs, header->lumps[LUMP_PLANES].filelen ))
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../engine/common/mod_bmodel.c:2894:51: note: passing argument to parameter 'lump' here
static int Mod_LumpLooksLikeEntities( const char *lump, const size_t lumplen )
                                                  ^
7 warnings and 1 error generated.

Waf: Leaving directory `/tmp/cirrus-ci-build/build'
Build failed
 -> task in 'xash' failed with exit status 1 (run with -v to display more information)