cgen: ignore -Wcast-qual when making a roslice

This commit is contained in:
Nigel Tao committed 2023-09-24 12:18:52 +10:00
1 parent 70c1a78cd8
commit bdba035779
3 files changed
+38 -6

No files matched your search

+14
View File
@@ -61,6 +61,20 @@
// --------
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
#endif
static inline uint8_t* //
wuffs_base__strip_const_from_u8_ptr(const uint8_t* ptr) {
return (uint8_t*)ptr;
}
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
// --------
static inline wuffs_base__empty_struct //
wuffs_base__ignore_status(wuffs_base__status z) {
return wuffs_base__make_empty_struct();