[Bug middle-end/94169] warn for modifying getenv() result

2020-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 --- Comment #4 from Martin Sebor --- Yes. The recent proposal to change their signature to return const char* was rejected in WG14 thanks to source compatibility concerns: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2526.htm http://www.op

[Bug middle-end/94169] warn for modifying getenv() result

2020-10-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug middle-end/94169] warn for modifying getenv() result

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 --- Comment #2 from Martin Sebor --- Other C standard functions that return a pointer to an unmodifiable object: localeconv(), setlocale(), strerror() In addition, stdin, stdout, and stderr could be marked as pointing to read-only (although u

[Bug middle-end/94169] warn for modifying getenv() result

2020-03-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94169 Martin Sebor changed: What|Removed |Added Blocks|88781 | --- Comment #1 from Martin Sebor --- On