forked from Alexpux/Cygwin
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nlsfuncs: work around an overzealous GCC warning
GCC 13 (and maybe 12, too), warn about pointers used after `free()`. In `nlsfuncs.cc`, they are used on purpose, though, in `rebase_locale_buf()`, to adjust pointers that were invalidated because of a `realloc()` (not a `free()`, actually). So let's shush GCC about those instances. However, we must be careful only to do that with GCC >= 12 because older versions would complain about an unknown warning... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters