Skip to content

Commit

Permalink
Core/CMake: Fix a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Venugh authored and Venugh committed Aug 13, 2011
1 parent 30a4857 commit 0358757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/compiler/msvc/settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ message(STATUS "MSVC: Disabled POSIX warnings")
# disable warnings in Visual Studio 8 and above if not wanted
if(NOT WITH_WARNINGS)
if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4789")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4789")
message(STATUS "MSVC: Disabled generic compiletime warnings")
endif()
endif()
3 changes: 2 additions & 1 deletion src/server/game/Server/Protocol/Opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ void InitOpcodes()
{

#define DEFINE_OPCODE_HANDLER(opcode, status, processing, handler) \
if (opcode < NUM_OPCODE_HANDLERS) { \
if (opcode < NUM_OPCODE_HANDLERS) \
{ \
if (opcodeTable[opcode] != NULL) \
{ \
sLog->outError("Tried to override handler of %s with %s (opcode %u)", \
Expand Down

0 comments on commit 0358757

Please sign in to comment.