1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-03 14:52:21 +02:00

Add missing const qualifier to errorTypeList.

This commit is contained in:
David Steele 2023-09-01 12:03:39 -04:00
parent 4f52015b14
commit fd9c6b0e9d
3 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ bldErrRenderErrorAutoC(const Storage *const storageRepo, const BldErr bldErr)
COMMENT_BLOCK_BEGIN "\n"
"Error type array\n"
COMMENT_BLOCK_END "\n"
"static const ErrorType *errorTypeList[] =\n"
"static const ErrorType *const errorTypeList[] =\n"
"{\n");
for (unsigned int errIdx = 0; errIdx < lstSize(bldErr.errList); errIdx++)

View File

@ -81,7 +81,7 @@ ERROR_DEFINE(125, UnknownError, false, RuntimeError);
/***********************************************************************************************************************************
Error type array
***********************************************************************************************************************************/
static const ErrorType *errorTypeList[] =
static const ErrorType *const errorTypeList[] =
{
&AssertError,
&ChecksumError,

View File

@ -97,7 +97,7 @@ testRun(void)
COMMENT_BLOCK_BEGIN "\n"
"Error type array\n"
COMMENT_BLOCK_END "\n"
"static const ErrorType *errorTypeList[] =\n"
"static const ErrorType *const errorTypeList[] =\n"
"{\n"
" &AssertError,\n"
" &OptionInvalidError,\n"