Modifies to work with gcc 4.8 for el7 #5847
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change enables parsers/scanners to work on the version of
gcc
that comes with el7 (RHEL7/Oracle Linux 7), which is 4.8. I assume later versions ofgcc
set c99 as the default standard and that's why it's not required.The parser/scanners for most languages compile with
clang
3.2.4. I set it up with this added to my init function in Lazy's configuration for treesitter.Unfortunately, the vim parser doesn't compile. Instead of throwing an error, it never finishes compiling. Strange; not going to investigate. For me, the best option was to use
gcc
and add this argument.Would adding this argument be detrimental to compilation on newer versions of
gcc
? I don't know. Please don't feel obligated to take this patch. I'm just offering it and want to make it findable for anyone else having the same issue.