1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-03 00:26:59 +02:00

Enable -Wconversion and silence new warnings.

This commit is contained in:
David Steele
2018-03-02 12:07:12 -05:00
parent 6ca6424fb1
commit 406acf9cba
41 changed files with 150 additions and 141 deletions

View File

@ -13,7 +13,7 @@ Test Configuration Parse
Option find test -- this is done a lot in the deprecated tests
***********************************************************************************************************************************/
static void
testOptionFind(const char *option, int value)
testOptionFind(const char *option, unsigned int value)
{
// If not testing for a missing option, then add the option offset that is already added to each option in the list
if (value != 0)
@ -555,7 +555,7 @@ testRun()
testOptionFind("no-db-user", 0);
for (int optionIdx = 0; optionIdx < cfgDefOptionIndexTotal(cfgDefOptPgPath); optionIdx++)
for (unsigned int optionIdx = 0; optionIdx < cfgDefOptionIndexTotal(cfgDefOptPgPath); optionIdx++)
{
testOptionFind(strPtr(strNewFmt("db%u-cmd", optionIdx + 1)), PARSE_DEPRECATE_FLAG | (cfgOptPgHostCmd + optionIdx));
testOptionFind(