Skip to content

Conversation

@ethandicks
Copy link

Minor changes to get a clean compile with gcc 4.8.5

Copy link
Owner

@brouhaha brouhaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean pre-C99 compilers? Is there a good reason to support pre-C99 compilers at this late date?

@ethandicks
Copy link
Author

ethandicks commented Oct 21, 2020 via email

@brouhaha
Copy link
Owner

brouhaha commented Oct 21, 2020 via email

@ethandicks
Copy link
Author

ethandicks commented Oct 21, 2020

Apologies for not being clearer. The existing code is C99 compatible but apparently gcc 4.8 doesn't default to that standard and would require '--std=c99' to quiet it down. I only tripped on this because that's the version of gcc you get with RHEL7 (RHEL7 is supported until August 2023). I'm reading that gcc 5.x and newer don't throw that error. RHEL8 moved to gcc 8.x.

@brouhaha
Copy link
Owner

Presumably adding --std=c99 won't break later versions of gcc, so I'd rather see that added to the Makefile.
I don't have any objection to "%option noinput".

@ethandicks
Copy link
Author

Is --std=gnu99 acceptable? That results in zero warnings with gcc 4.8.

@ethandicks
Copy link
Author

I'm finished with changes. This should be ready to go, if acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants