1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-05 15:05:48 +02:00

Use uint8_t for optionResolveOrder.

This saves a bit of space and should not affect processing speed.

On MacOS (clang) this unexpectedly reduces the size of the binary by 16kiB but on Linux (gcc) there are no savings at all.
This commit is contained in:
David Steele 2022-05-06 07:49:23 -04:00
parent 808f7bf11c
commit e70c71049e
3 changed files with 3 additions and 3 deletions

View File

@ -1085,7 +1085,7 @@ bldCfgRenderParseAutoC(const Storage *const storageRepo, const BldCfg bldCfg)
COMMENT_BLOCK_BEGIN "\n"
"Order for option parse resolution\n"
COMMENT_BLOCK_END "\n"
"static const ConfigOption optionResolveOrder[] =\n"
"static const uint8_t optionResolveOrder[] =\n"
"{\n");
// Render resolve order

View File

@ -9246,7 +9246,7 @@ static const ParseRuleOptionDeprecate parseRuleOptionDeprecate[CFG_OPTION_DEPREC
/***********************************************************************************************************************************
Order for option parse resolution
***********************************************************************************************************************************/
static const ConfigOption optionResolveOrder[] =
static const uint8_t optionResolveOrder[] =
{
cfgOptStanza,
cfgOptArchiveAsync,

View File

@ -1554,7 +1554,7 @@ testRun(void)
COMMENT_BLOCK_BEGIN "\n"
"Order for option parse resolution\n"
COMMENT_BLOCK_END "\n"
"static const ConfigOption optionResolveOrder[] =\n"
"static const uint8_t optionResolveOrder[] =\n"
"{\n"
" cfgOptStanza,\n"
" cfgOptBufferSize,\n"