You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Gábor Gyimesi (Jira)" <ji...@apache.org> on 2026/03/03 10:04:00 UTC

[jira] [Created] (MINIFICPP-2738) Compilation fails on GCC12 when warnings are treated as errors

Gábor Gyimesi created MINIFICPP-2738:
----------------------------------------

             Summary: Compilation fails on GCC12 when warnings are treated as errors
                 Key: MINIFICPP-2738
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2738
             Project: Apache NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Gábor Gyimesi
            Assignee: Gábor Gyimesi


[https://github.com/apache/nifi-minifi-cpp/actions/runs/22101597187]
{code:java}
2026-03-02T18:40:12.9768147Z #10 5104.5 inlined from ‘constexpr org::apache::nifi::minifi::core::RecordField::~RecordField()’ at /opt/minifi/minifi-api/include/minifi-cpp/core/RecordField.h:62:3,2026-03-02T18:40:12.9770917Z #10 5104.5 inlined from ‘nonstd::expected_lite::expected<org::apache::nifi::minifi::core::RecordField, std::error_code> org::apache::nifi::minifi::standard::{anonymous}::parse(const rapidjson::Value&)’ at /opt/minifi/extensions/standard-processors/controllers/JsonTreeReader.cpp:64:18:2026-03-02T18:40:12.9772899Z #10 5104.5 /usr/local/include/c++/12.5.0/bits/new_allocator.h:169:33: error: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘<anonymous>’ [-Werror=free-nonheap-object]2026-03-02T18:40:12.9773719Z #10 5104.5 169 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));2026-03-02T18:40:12.9774607Z #10 5104.5 | ^2026-03-02T18:40:12.9775884Z #10 5104.5 /opt/minifi/extensions/standard-processors/controllers/JsonTreeReader.cpp: In function ‘nonstd::expected_lite::expected<org::apache::nifi::minifi::core::RecordField, std::error_code> org::apache::nifi::minifi::standard::{anonymous}::parse(const rapidjson::Value&)’:2026-03-02T18:40:12.9777946Z #10 5104.5 /opt/minifi/extensions/standard-processors/controllers/JsonTreeReader.cpp:64:54: note: declared here2026-03-02T18:40:12.9778884Z #10 5104.5 64 | return core::RecordField{std::move(record_object)};2026-03-02T18:40:12.9779271Z #10 5104.5 | ^2026-03-02T18:40:12.9779599Z #10 5104.5 cc1plus: all warnings being treated as errors {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)