diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-11 13:06:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-17 08:33:11 -0700 |
commit | 4110fd5e57f5b42d37e821cf56ce5fa59728e3f2 (patch) | |
tree | ac34df60d110e638adcb9f468ab429cf1873f0cc | |
parent | f5cb430f246850e8213fe5cd95b4ea44228f3c3b (diff) |
Declare guesses const
As suggested by cppcheck:
parse.c:163:19: style: Variable 'guesses' can be declared with const [constVariable]
static int guesses[] = { 1, 4, 100, 1000, 1 };
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ ParseInput(DviWidget dw) n = GetNumber(dw); if (!dw->dvi.size_scale) { - static int guesses[] = { 1, 4, 100, 1000, 1 }; + static const int guesses[] = { 1, 4, 100, 1000, 1 }; int i; for (i = 0; i < 4; i++) |