Skip to content

Reduce some of GCC 7's nagging#37

Open
CounterPillow wants to merge 1 commit into
tunabrain:masterfrom
CounterPillow:gcc-7-warnings
Open

Reduce some of GCC 7's nagging#37
CounterPillow wants to merge 1 commit into
tunabrain:masterfrom
CounterPillow:gcc-7-warnings

Conversation

@CounterPillow

@CounterPillow CounterPillow commented Jun 2, 2017

Copy link
Copy Markdown
Contributor

Disable -Wimplicit-fallthrough using fallthrough comments, since we can't use C++17 attributes.

Also disable -Wattributes in embree, since it generates a lot of warnings from that.

Add fallthrough comments to tinyformat.hpp to disable
-Wimplicit-fallthrough warnings.

Also disable -Wattributes in embree, since it generates a lot of
warnings from that.
@tunabrain

Copy link
Copy Markdown
Owner

Thanks for that! Is it possible to just use -Wno-implicit-fallthrough instead of modifying tinyformat? I'd like to avoid modifying third-party libraries, since those changes will be overwritten when the library is updated.

@nemequ

nemequ commented Jun 23, 2018

Copy link
Copy Markdown

Better yet, why not just update tinyformat? This seems to be fixed already there…

@CounterPillow

Copy link
Copy Markdown
Contributor Author

Well, you are commenting over a year later

@nemequ

nemequ commented Jun 23, 2018

Copy link
Copy Markdown

Originally I was going to suggest fixing tinyformat instead of just disabling the warning. It's an easy patch.

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.

3 participants