SOCI / soci

Official repository of the SOCI - The C++ Database Access Library
http://soci.sourceforge.net/
Boost Software License 1.0
1.37k stars 472 forks source link

Always initialize a variable to avoid -Wmaybe-uninitialized #1038

Closed vadz closed 1 year ago

vadz commented 1 year ago

This warning is sometimes given (e.g. when using optional) and can't be easily suppressed from the application code, so ensure the variable is always initialized to avoid it.

Closes #1037.

vadz commented 1 year ago

I've somehow completely forgotten to merge this, but it's done now.