You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You used sprintf. But when I enable ASAN and compile on Mac, I get this deprecation error:
/Users/richie/Documents/cxx_projects/iree.gd/thirdparty/iree/third_party/libyaml/src/dumper.c:254:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
sprintf((char *)anchor, ANCHOR_TEMPLATE, anchor_id);
^
I have suppress the error on my project, but it sure does feel like beat around the bush instead of directly solve the problem though. Hopefully it can be replace with the safer variant, snprintf, and make compiling on MacOS with ASAN much easier.
The text was updated successfully, but these errors were encountered:
In dumper.c:
You used
sprintf
. But when I enable ASAN and compile on Mac, I get this deprecation error:I have suppress the error on my project, but it sure does feel like beat around the bush instead of directly solve the problem though. Hopefully it can be replace with the safer variant,
snprintf
, and make compiling on MacOS with ASAN much easier.The text was updated successfully, but these errors were encountered: