Missed a couple wanrings. Build example dll

This commit is contained in:
Chris Marsh 2017-10-12 16:14:16 -07:00
parent 990c8d4be6
commit 6cdc830544
3 changed files with 4 additions and 1 deletions

View file

@ -31,11 +31,14 @@ if(WIN32)
add_library(discord-rpc ${RPC_LIBRARY_TYPE} ${BASE_RPC_SRC}) add_library(discord-rpc ${RPC_LIBRARY_TYPE} ${BASE_RPC_SRC})
target_compile_options(discord-rpc PRIVATE /EHsc target_compile_options(discord-rpc PRIVATE /EHsc
/Wall /Wall
/wd4100 # unreferenced formal parameter
/wd4514 # unreferenced inline /wd4514 # unreferenced inline
/wd4625 # copy constructor deleted /wd4625 # copy constructor deleted
/wd5026 # move constructor deleted /wd5026 # move constructor deleted
/wd4626 # move assignment operator deleted /wd4626 # move assignment operator deleted
/wd4668 # not defined preprocessor macro
/wd4710 # function not inlined /wd4710 # function not inlined
/wd4711 # function was inlined
/wd4820 # structure padding /wd4820 # structure padding
/wd4946 # reinterpret_cast used between related classes /wd4946 # reinterpret_cast used between related classes
/wd5027 # move assignment operator was implicitly defined as deleted /wd5027 # move assignment operator was implicitly defined as deleted

View file

@ -13,7 +13,7 @@ class MsgQueue {
std::atomic_uint pendingSends_{0}; std::atomic_uint pendingSends_{0};
public: public:
MsgQueue(){} MsgQueue() {}
ElementType* GetNextAddMessage() ElementType* GetNextAddMessage()
{ {