-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Stringbuf warning when compiling #8177
Comments
Some in Windows VS Commpiler. |
Seeing this on Debain as well. |
i have same issue OS ConfigurationCentOS Linux release 7.9.2009 (Core) Result
|
Seems my PR works fine on Ubuntu |
I tested on an old CentOS 7 (gcc 7.3.1) I have and it compiled with no warnings. |
rAthena Hash
5ebfd54
Client Date
not related
Server Mode
Pre-Renewal
Result
make[1]: Entering directory `/root/rathena/src/common'
MKDIR obj
CXX core.cpp
CXX socket.cpp
CXX timer.cpp
CXX db.cpp
CXX nullpo.cpp
CXX malloc.cpp
CXX showmsg.cpp
CXX strlib.cpp
strlib.cpp: In function ‘size_t _StringBuf_Vprintf(const char*, int, const char*, StringBuf*, const char*, __va_list_tag*)’:
strlib.cpp:1015:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( n > -1 && n < size )
~~^~~~~~
CXX utils.cpp
Relevant Log Output
No response
Expected Result
Maybe no warning if possible.
How to Reproduce
Recompile in Centos 7 environment, didnt tried yet with Ubuntu.
Official Information
not related
Modifications that may affect results
No response
The text was updated successfully, but these errors were encountered: