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

Compile error #2

Closed
asdfxD opened this issue Nov 22, 2023 · 1 comment
Closed

Compile error #2

asdfxD opened this issue Nov 22, 2023 · 1 comment

Comments

@asdfxD
Copy link

asdfxD commented Nov 22, 2023

root@v11725 mysql_mm/build# ambuild
Spawned worker (pid: 366619)
Spawned worker (pid: 366620)
[366619] cp "/root/mysql_mm/build/mysql_mm.vdf" "./package/addons/metamod/mysql_ mm.vdf"
[366619] g++ -m64 -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -W no-unused -Wno-switch -msse -fPIC -fvisibility=hidden -mfpmath=sse -fno-omit-fra me-pointer -std=c++2a -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno -threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-no n-virtual-dtor -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf - D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -D_FILE_OFFSET_BIT S=64 -DSE_EPISODEONE=1 -DSE_ORANGEBOX=3 -DSE_CSS=6 -DSE_HL2DM=7 -DSE_DODS=8 -DSE _SDK2013=9 -DSE_TF2=12 -DSE_LEFT4DEAD=13 -DSE_NUCLEARDAWN=14 -DSE_LEFT4DEAD2=16 -DSE_DARKMESSIAH=2 -DSE_ALIENSWARM=17 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_MCV= 22 -DSE_CSGO=23 -DSE_PORTAL2=18 -DSE_BLADE=19 -DSE_INSURGENCY=20 -DSE_DOI=21 -DS E_CONTAGION=15 -DSE_BMS=11 -DSE_MOCK=999 -DSE_PVKII=10 -DSE_DOTA=24 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DMETA_IS_SOURCE2 -I /home/metamod/core -I /home/metamod/core/sourcehook -I /root/mysql_mm -I /roo t/CS2Fixes/sdk/public -I /root/CS2Fixes/sdk/public/engine -I /root/CS2Fixes/sdk/ public/mathlib -I /root/CS2Fixes/sdk/public/vstdlib -I /root/CS2Fixes/sdk/public /tier0 -I /root/CS2Fixes/sdk/public/tier1 -I /root/CS2Fixes/sdk/public/game/serv er -I /root/CS2Fixes/sdk/game/shared -I /root/CS2Fixes/sdk/common -MD -MF src_my sql_result.d -c /root/mysql_mm/src/mysql_result.cpp -o src_mysql_result.o
/root/mysql_mm/src/mysql_result.cpp: In member function ‘virtual const char* CMy SQLResult::FieldNumToName(unsigned int)’:
/root/mysql_mm/src/mysql_result.cpp:64:12: error: comparison of integer expressi ons of different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
64 | if (colId >= GetFieldCount())
| ~~~~~~^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Build failed: mysql_mm/linux-x86_64/src_mysql_result.o
root@v11725 /mysql_mm/build#

@Poggicek
Copy link
Owner

use clang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants