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:
parent
4f52015b14
commit
fd9c6b0e9d
@ -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++)
|
||||
|
@ -81,7 +81,7 @@ ERROR_DEFINE(125, UnknownError, false, RuntimeError);
|
||||
/***********************************************************************************************************************************
|
||||
Error type array
|
||||
***********************************************************************************************************************************/
|
||||
static const ErrorType *errorTypeList[] =
|
||||
static const ErrorType *const errorTypeList[] =
|
||||
{
|
||||
&AssertError,
|
||||
&ChecksumError,
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user