fix compile errors

This commit is contained in:
Shengliang Guan 2020-12-13 23:29:08 +08:00
parent ce393e4d2d
commit 547fa46ae7
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ IF (TD_LINUX)
ENDIF ()
SET(DEBUG_FLAGS "-O0 -g3 -DDEBUG")
SET(RELEASE_FLAGS "-Og -Wno-unused-result -Wno-unused-variable -Wno-unused-but-set-variable -Wno-format-truncation -Wno-maybe-uninitialized -Wno-format-overflow")
SET(RELEASE_FLAGS "-O3 -Wno-error")
IF (${COVER} MATCHES "true")
MESSAGE(STATUS "Test coverage mode, add extra flags")

View File

@ -256,7 +256,7 @@ bool httpInitConnect() {
HttpThread *pThread = pServer->pThreads;
for (int32_t i = 0; i < pServer->numOfThreads; ++i) {
snprintf(pThread->label, HTTP_LABEL_SIZE, "%s%d", pServer->label, i);
sprintf(pThread->label, "%s%d", pServer->label, i);
pThread->processData = pServer->processData;
pThread->threadId = i;