-
Notifications
You must be signed in to change notification settings - Fork 5
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
Concerning warning when building #58
Comments
This code, as previously written, entered into the "if" body even when no separator ("=") was found. By good chance this didn't cause any issues: because of how std::string::substr works the two calls issued using the position value "j" ended up not throwing exceptions, although both the parameter name and value would end up being equal to the full line. This in turn means none of the subsequent "if" statements that set different options are invoked. Although this was probably never seen in the wild because configuration files are seldom incorrectly written, a warning was generated by different compilers (depending on version and warning flags). Since the code is quite warning-full we never paid much attention to it until now. The new code now properly checks that the result of the find call is valid before using it. This addresses #58. Signed-off-by: Rodrigo Tobar <[email protected]>
A fix has been added in the |
Merged to the |
Thanks very much for fixing this so quickly! |
This is very similar to the warning reported in #58, but for some reason I didn't fix it in 1ef9252. Here it goes. Signed-off-by: Rodrigo Tobar <[email protected]>
Describe the bug
I get the following warning when building on my laptop:
Using
Might be worth checking out.
The text was updated successfully, but these errors were encountered: