VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Support General Support
  • Search

VS2012 Compile Spam

General Support topics.

Moderator: Community Managers

Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
VS2012 Compile Spam
  • Quote

Post by John Adams » Sun Nov 23, 2014 5:51 pm

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
.
.
.
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: VS2012 Compile Spam
  • Quote

Post by Lokked » Sun Nov 23, 2014 6:33 pm

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.
Top

User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: VS2012 Compile Spam
  • Quote

Post by John Adams » Sun Nov 23, 2014 7:42 pm

Ok, so nothing really scarey. Just looked scarey. Gotcha.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Support”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD