mirror of
https://github.com/postgres/postgres.git
synced 2026-04-28 17:49:35 -04:00
Newest versions of gcc+glibc are able to detect cases where code implicitly casts away const by assigning the result of strchr() or a similar function applied to a "const char *" value to a target variable that's just "char *". This of course creates a hazard of not getting a compiler warning about scribbling on a string one was not supposed to, so fixing up such cases is good. This patch fixes a dozen or so places where we were doing that. Most are trivial additions of "const" to the target variable, since no actually-hazardous change was occurring. Thanks to Bertrand Drouvot for finding a couple more spots than I had. This commit back-patches relevant portions of |
||
|---|---|---|
| .. | ||
| dicts | ||
| dict.c | ||
| dict_ispell.c | ||
| dict_simple.c | ||
| dict_synonym.c | ||
| dict_thesaurus.c | ||
| Makefile | ||
| meson.build | ||
| regis.c | ||
| spell.c | ||
| to_tsany.c | ||
| ts_locale.c | ||
| ts_parse.c | ||
| ts_selfuncs.c | ||
| ts_typanalyze.c | ||
| ts_utils.c | ||
| wparser.c | ||
| wparser_def.c | ||