issue a warning for ptr to cstring conversion[backport] (#20814)

* issue a warning for ptr to cstring conversion[backport]

* add a changelog
This commit is contained in:
ringabout 2022-11-12 02:32:33 +08:00 • committed by GitHub
commit 8e1181bde5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -96,6 +96,10 @@
- The `gorge`/`staticExec` calls will now return a descriptive message in the output
if the execution fails for whatever reason. To get back legacy behaviour use `-d:nimLegacyGorgeErrors`.
- Pointer to `cstring` conversion now triggers a `[PtrToCstringConv]` warning.
This warning will become an error in future versions! Use a `cast` operation
like `cast[cstring](x)` instead.
## Standard library additions and changes
[//]: # "Changes:"