任务单 #46372

FC_PTR_TO_INT() not working under c23

开放日期: 2022-12-27 12:22 最后更新: 2023-01-13 15:22

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
2

Details

In C23 mode I've got compile failure from client options hash handling, that seems to be down to bad cast by FC_PTR_TO_INT()

任务单历史 (3/7 Histories)

2022-12-27 12:22 Updated by: cazfi
  • New Ticket "FC_PTR_TO_INT() not working under c23" created
2022-12-29 14:42 Updated by: cazfi
  • 里程碑 Update from (无) to 3.0.6 (关闭)
  • 组件 Update from (无) to General
2023-01-07 22:22 Updated by: cazfi
评论

The problem is not the casts made by FC_PTR_TO_INT(), but the parameter passed to it; there's a bad cast to get PTR for FC_PTR_TO_INT() to cast forward.

Yes, these macros within macros ending up making four or five casts from one type to the next might be a bit insane, but I'm for just fixing them in the stable branches. Any bigger restructuring should take place in development branch only.

2023-01-07 23:34 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
评论

Also to S2_6.

2023-01-13 15:22 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名