forked from Mirrorlandia_minetest/minetest
Silence misc. warnings
This commit is contained in:
parent
7b93408884
commit
565959db86
@ -643,6 +643,11 @@ else()
|
|||||||
if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
|
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
|
||||||
endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||||
|
|
||||||
|
CHECK_CXX_COMPILER_FLAG("-Wno-type-limits" HAS_TYPE_LIMITS_WARNING)
|
||||||
|
if(HAS_TYPE_LIMITS_WARNING)
|
||||||
|
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-type-limits")
|
||||||
|
endif(HAS_TYPE_LIMITS_WARNING)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
@ -304,7 +304,7 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
|
|||||||
{
|
{
|
||||||
ITextureSource *tsrc = gamedef->getTextureSource();
|
ITextureSource *tsrc = gamedef->getTextureSource();
|
||||||
IItemDefManager *idef = gamedef->getItemDefManager();
|
IItemDefManager *idef = gamedef->getItemDefManager();
|
||||||
IShaderSource *shdrsrc = gamedef->getShaderSource();
|
//IShaderSource *shdrsrc = gamedef->getShaderSource();
|
||||||
INodeDefManager *ndef = gamedef->getNodeDefManager();
|
INodeDefManager *ndef = gamedef->getNodeDefManager();
|
||||||
const ItemDefinition &def = item.getDefinition(idef);
|
const ItemDefinition &def = item.getDefinition(idef);
|
||||||
const ContentFeatures &f = ndef->get(def.name);
|
const ContentFeatures &f = ndef->get(def.name);
|
||||||
|
Loading…
Reference in New Issue
Block a user