VS2012 Compile Spam
Moderator: Community Managers
- John Adams
- Retired
- Posts: 4581
- Joined: Wed Aug 28, 2013 9:40 am
- Location: Phoenix, AZ.
- Contact:
VS2012 Compile Spam
Rev 849 (ish), why am I suddenly being frightened by this blown out spam warning during compile?
Code: Select all
.
.
.
5> Dialog.cpp
5> DialogManager.cpp
5> DialogUtil.cpp
5>d:\dev\vg\vgo\trunk\src\world\chunkserver.cpp(2214): warning C4244: 'argument' : conversion from 'time_t' to 'uint32_t', possible loss of data
5> FactionInfoList.cpp
5>c:\program files (x86)\microsoft visual studio 11.0\vc\include\utility(182): warning C4244: 'initializing' : conversion from 'double' to 'const float', possible loss of data (..\..\src\world\Commands.cpp)
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(617) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<double,std::shared_ptr<_Ty>>(std::pair<double,_Ty2> &&,void **)' being compiled
5> with
5> [
5> _Ty1=const float,
5> _Ty2=std::shared_ptr<Npc>,
5> _Ty=Npc
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(617) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<double,std::shared_ptr<_Ty>>(std::pair<double,_Ty2> &&,void **)' being compiled
5> with
5> [
5> _Ty1=const float,
5> _Ty2=std::shared_ptr<Npc>,
5> _Ty=Npc
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(751) : see reference to function template instantiation 'void std::allocator<_Ty>::construct<_Objty,std::pair<_Ty1,_Ty2>>(_Objty *,_V0_t &&)' being compiled
5> with
5> [
5> _Ty=std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>,
5> _Objty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(751) : see reference to function template instantiation 'void std::allocator<_Ty>::construct<_Objty,std::pair<_Ty1,_Ty2>>(_Objty *,_V0_t &&)' being compiled
5> with
5> [
5> _Ty=std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>,
5> _Objty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(903) : see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,std::pair<_Ty1,_Ty2>>(std::allocator<_Other> &,_Objty *,_V0_t &&)' being compiled
5> with
5> [
5> _Alloc=std::allocator<std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>>,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _Other=std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>,
5> _Objty=std::pair<const float,std::shared_ptr<Npc>>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0(903) : see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,std::pair<_Ty1,_Ty2>>(std::allocator<_Other> &,_Objty *,_V0_t &&)' being compiled
5> with
5> [
5> _Alloc=std::allocator<std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>>,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _Other=std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>,
5> _Objty=std::pair<const float,std::shared_ptr<Npc>>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree(945) : see reference to function template instantiation 'void std::_Wrap_alloc<_Alloc>::construct<_Ty,std::pair<_Ty1,_Ty2>>(_Ty *,_V0_t &&)' being compiled
5> with
5> [
5> _Alloc=std::allocator<std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>>,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree(945) : see reference to function template instantiation 'void std::_Wrap_alloc<_Alloc>::construct<_Ty,std::pair<_Ty1,_Ty2>>(_Ty *,_V0_t &&)' being compiled
5> with
5> [
5> _Alloc=std::allocator<std::_Tree_node<std::pair<const float,std::shared_ptr<Npc>>,void *>>,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree(1151) : see reference to function template instantiation 'std::_Tree_node<_Value_type,_Voidptr> *std::_Tree_buy<_Ty,_Alloc>::_Buynode<std::pair<_Ty1,_Ty2>>(_V0_t &&)' being compiled
5> with
5> [
5> _Value_type=std::pair<const float,std::shared_ptr<Npc>>,
5> _Voidptr=void *,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Alloc=std::allocator<std::pair<const float,std::shared_ptr<Npc>>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree(1151) : see reference to function template instantiation 'std::_Tree_node<_Value_type,_Voidptr> *std::_Tree_buy<_Ty,_Alloc>::_Buynode<std::pair<_Ty1,_Ty2>>(_V0_t &&)' being compiled
5> with
5> [
5> _Value_type=std::pair<const float,std::shared_ptr<Npc>>,
5> _Voidptr=void *,
5> _Ty=std::pair<const float,std::shared_ptr<Npc>>,
5> _Alloc=std::allocator<std::pair<const float,std::shared_ptr<Npc>>>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _V0_t=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\map(351) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2> std::_Tree<_Traits>::insert<_Ty>(_Valty &&)' being compiled
5> with
5> [
5> _Ty1=std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const float,std::shared_ptr<Npc>>>>>,
5> _Ty2=bool,
5> _Traits=std::_Tmap_traits<float,std::shared_ptr<Npc>,std::less<float>,std::allocator<std::pair<const float,std::shared_ptr<Npc>>>,true>,
5> _Ty=std::pair<double,std::shared_ptr<Npc>>,
5> _Valty=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> c:\program files (x86)\microsoft visual studio 11.0\vc\include\map(351) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2> std::_Tree<_Traits>::insert<_Ty>(_Valty &&)' being compiled
5> with
5> [
5> _Ty1=std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const float,std::shared_ptr<Npc>>>>>,
5> _Ty2=bool,
5> _Traits=std::_Tmap_traits<float,std::shared_ptr<Npc>,std::less<float>,std::allocator<std::pair<const float,std::shared_ptr<Npc>>>,true>,
5> _Ty=std::pair<double,std::shared_ptr<Npc>>,
5> _Valty=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> d:\dev\vg\vgo\trunk\src\world\commands.cpp(1936) : see reference to function template instantiation 'std::_Tree_iterator<_Mytree> std::multimap<_Kty,_Ty>::insert<std::pair<_Ty1,_Ty2>>(_Valty &&)' being compiled
5> with
5> [
5> _Mytree=std::_Tree_val<std::_Tree_simple_types<std::pair<const float,std::shared_ptr<Npc>>>>,
5> _Kty=float,
5> _Ty=std::shared_ptr<Npc>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _Valty=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> d:\dev\vg\vgo\trunk\src\world\commands.cpp(1936) : see reference to function template instantiation 'std::_Tree_iterator<_Mytree> std::multimap<_Kty,_Ty>::insert<std::pair<_Ty1,_Ty2>>(_Valty &&)' being compiled
5> with
5> [
5> _Mytree=std::_Tree_val<std::_Tree_simple_types<std::pair<const float,std::shared_ptr<Npc>>>>,
5> _Kty=float,
5> _Ty=std::shared_ptr<Npc>,
5> _Ty1=double,
5> _Ty2=std::shared_ptr<Npc>,
5> _Valty=std::pair<double,std::shared_ptr<Npc>>
5> ]
5> ItemInfoList.cpp
5> LoginServer.cpp
5> LuaFunctions.cpp
5> LuaInterface.cpp
.
.
.
Re: VS2012 Compile Spam
It doesn't like floats, but I use that because the unreal functions return floats. We could change these functions to doubles, unless someone can identify a reason not to. Or I could just cast these as doubles. I'll try something.
- John Adams
- Retired
- Posts: 4581
- Joined: Wed Aug 28, 2013 9:40 am
- Location: Phoenix, AZ.
- Contact:
Re: VS2012 Compile Spam
Ok, so nothing really scarey. Just looked scarey. Gotcha.