[
https://issues.apache.org/jira/browse/MINIFI-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995256#comment-15995256
]
ASF GitHub Bot commented on MINIFI-286:
---------------------------------------
Github user apiri commented on the issue:
https://github.com/apache/nifi-minifi-cpp/pull/88
cool, looks good and was able to verify the issue beforehand with a
specific docker environment that hit the bad logic. I did notice there was a
linter issue but I can take care of that on merge
Thanks for correcting this!
> GetFile filter fails to compile with GCC version greater than 4.9
> -----------------------------------------------------------------
>
> Key: MINIFI-286
> URL: https://issues.apache.org/jira/browse/MINIFI-286
> Project: Apache NiFi MiNiFi
> Issue Type: Bug
> Components: C++
> Reporter: Jeremy Dyer
> Assignee: Jeremy Dyer
> Fix For: cpp-0.2.0
>
>
> GetFile.cpp has a macro which if the GCC version is greater than 4.9 a line
> of code is introduced where "fileFilter" is used rather than
> "request.fileFilter" which causes a compilation error.
> GCC Version = 4.9.2
> /opt/nifi-minifi-cpp/libminifi/src/processors/GetFile.cpp: In member function
> ‘bool org::apache::nifi::minifi::processors::GetFile::acceptFile(std::string,
> std::string, const org::apache::nifi::minifi::processors::GetFileRequest&)’:
> /opt/nifi-minifi-cpp/libminifi/src/processors/GetFile.cpp:283:21: error:
> ‘fileFilter’ was not declared in this scope
> std::regex re(fileFilter);
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)