mirror of
https://github.com/postgres/postgres.git
synced 2026-04-12 20:46:42 -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 |
||
|---|---|---|
| .. | ||
| ecpg | ||
| libpq | ||
| Makefile | ||
| meson.build | ||