diff options
author | nineonine <mail4chemik@gmail.com> | 2022-11-10 21:03:11 -0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-28 02:57:59 -0500 |
commit | b3a3534b6f75b34dc4db76e904e071485da6d5cc (patch) | |
tree | 052e7514c81ff410484d8466052d3f62b9767c99 /testsuite/tests/rename/should_fail/rnfail048.stderr | |
parent | 56c1bd986ac13e3a1fe1149f011480e44f857f5a (diff) | |
download | haskell-b3a3534b6f75b34dc4db76e904e071485da6d5cc.tar.gz |
CApiFFI: add ConstPtr for encoding const-qualified pointer return types
Previously, when using `capi` calling convention in foreign declarations,
code generator failed to handle const-cualified pointer return types.
This resulted in CC toolchain throwing `-Wincompatible-pointer-types-discards-qualifiers`
warning.
`Foreign.C.Types.ConstPtr` newtype was introduced to handle these cases -
special treatment was put in place to generate appropritetly qualified C
wrapper that no longer triggers the above mentioned warning.
Fixes #22043.
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail048.stderr')
0 files changed, 0 insertions, 0 deletions