-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Fix. #1918
Build Fix. #1918
Conversation
BTW. Might be a good idea to mention what exactly toolchains fail to compile this. It's because someone in future might simply remove this definition as being repeated after the |
The makitoX toolchain for 1. And a couple of others that I was building for. |
I would say some refactoring is better to be done here. 🤔 A fair comment by @quink-black that this code should better be placed under Possible RefactoringOne way I see is to change the void* ParseFilterConfig(std::string s, SrtFilterConfig& w_config); Way number two: move the abstract class bool ParseFilterConfig(std::string s, SrtFilterConfig& w_config); |
@maxsharabayko Well the current one line change fixes the build. That should be merged and then the cleanup/refactor would be a different issue to be addressed later. |
bool ParseFilterConfig()
3 parameter version is called insrtcore/socketconfig.h:1072
, but there is no prototype defined for it. This causes build failures with toolchains that do not auto-create anint ParseFilterConfig()
for calls to undefined functions. This could also cause ABI issues ifsizeof(bool) != sizeof(int)
causing potential memory access violations.