MINIFI-286: Fix compilation error when GCC version is greater than 4.9#88
MINIFI-286: Fix compilation error when GCC version is greater than 4.9#88jdye64 wants to merge 3 commits intoapache:masterfrom jdye64:MINIFI-286
Conversation
|
reviewing |
|
Hey @jdye64, I was not able to make the current codebase fail under Ubuntu 17.04 which has gcc 6.3.0 (12ubuntu2). Any other considerations of your environment? |
|
@apiri The logic can be improved @jdye64 I'm in favor of removing the conditional expression entirely and using the c style for all versions since that will work. There's no point in using the C++ regex matching since it won't be available for all builds. If you really want to maintain it, you can do this: The alternative, would be something like this: |
|
I like just removing the conditional expression. I'm going to update to that now. |
updates per @phrocker suggestion
|
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! |
This closes apache#88. Signed-off-by: Aldrin Piri <aldrin@apache.org>
Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with MINIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.