Steam Compiler Warnings 4.17

nicholasbagamian
Sun, 17 Sep 2017 21:42:24 +0000
Platform & Builds

We just updated to 4.17 and are getting a bunch of compiler warnings when using the steam api.

Here is one of the warnings, the others are similar:

C:\Users\nicho\Documents\Unreal Projects\UE_4.17\Engine\Source\ThirdParty\Steamworks\Steamv139\sdk\public\steam/steam_api.h(302): warning C4265: 'CCallResult<SteamGame,LobbyCreated_t>': class has virtual functions, but destructor is not virtual instances of this class may not be destructed correctly
C:\Users\nicho\Documents\Unreal Projects\Game\Source\Game\Steam/SteamGame.h(42): note: see reference to class template instantiation 'CCallResult<SteamGame,LobbyCreated_t>' being compiled

I have looked into the warning and from what I have read, it sounds like I have to make the destructor of ccallresult in steam_api virtual, but since we are not using a custom engine, we cannot change the file.

This isn’t preventing the game from compiling, but it would be nice to get rid of these warnings.

Any help is greatly appreciated.

Thanks,
Nick

4 posts - 1 participant