diff options
author | nineonine <mail4chemik@gmail.com> | 2022-11-10 21:03:11 -0800 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2023-01-27 16:12:13 +0000 |
commit | 1d6f42895641555e18a2e4cdc664759b6d00dac4 (patch) | |
tree | ab93abbc0ceb37714a3bbaebfe206f36a3b951a8 /docs/users_guide/conf.py | |
parent | b95dab8b0807533de258e5fe985822ae393f5fef (diff) | |
download | haskell-wip/T22043.tar.gz |
CApiFFI: add ConstPtr for encoding const-qualified pointer return typeswip/T22043
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 'docs/users_guide/conf.py')
0 files changed, 0 insertions, 0 deletions