错误: 从 'double' 转换为 'float' 可能会改变值 [-Werror=float-conversion]
作者: superphosphate创建于 2025年10月4日更新于 2026年8月1日
Description
I encountered a compilation error when integrating cJSON into my C++ project via CMake's FetchContent. The build fails at line 607 in cjson.c with the following error:
error: conversion from 'double' to 'float' may change value [-Werror=float-conversion]内容来源: DaveGamble/cJSON