Skip to content

Commit

Permalink
fixes #23001; give a better warning for PtrToCstringConv (#23005)
Browse files Browse the repository at this point in the history
fixes #23001

(cherry picked from commit 7ea5aaa)
  • Loading branch information
ringabout authored and narimiran committed Apr 18, 2024
1 parent 4bc45bb commit c696ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/lineinfos.nim
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const
warnAnyEnumConv: "$1",
warnHoleEnumConv: "$1",
warnCstringConv: "$1",
warnPtrToCstringConv: "unsafe conversion to 'cstring' from '$1'; this will become a compile time error in the future",
warnPtrToCstringConv: "unsafe conversion to 'cstring' from '$1'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future",
warnEffect: "$1",
warnCastSizes: "$1", # deadcode
warnAboveMaxSizeSet: "$1",
Expand Down

0 comments on commit c696ec9

Please sign in to comment.