View Issue Details

IDProjectCategoryView StatusLast Update
0004580NoesisGUIUnrealpublic2025-11-27 00:23
ReporterJinFox Assigned Tohcpizzi  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.10 
Target Version3.2.11 
Summary0004580: Rive.cpp line 1444 causing compilation issue in case of -Werror compilation flag ([nodiscard] rule not being respected
Description

Hello,
I wanted to create a ticket for a minor issue that forced me to do an edit in the Rive Package to be able to build.

At line 1444, the NS_LOG_WARNING macro has some specificities that might be discarding the result of filename.c_str(). As a result of that, any building process that require strict enforcement of the nodiscard rule will fail.

This is the line with the issue : NS_LOG_WARNING("Ignoring embedded asset '%s' (%zu bytes)", filename.c_str(), bytes.size());

Either storing the result of c_str() or using "&*filename.c_str()" were two solutions that worked for me to "ignore" this compilation error and make the compiler believe that I wasn't discarding the return value of c_str().

PlatformAny

Activities

jsantos

jsantos

2025-11-27 00:23

manager   ~0011481

Thank you for the feedback!

Issue History

Date Modified Username Field Change
2025-11-26 17:52 JinFox New Issue
2025-11-26 17:53 JinFox Description Updated
2025-11-27 00:23 jsantos Assigned To => hcpizzi
2025-11-27 00:23 jsantos Status new => assigned
2025-11-27 00:23 jsantos Target Version => 3.2.11
2025-11-27 00:23 jsantos Status assigned => resolved
2025-11-27 00:23 jsantos Resolution open => fixed
2025-11-27 00:23 jsantos Note Added: 0011481