Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: use of old-style cast #48

Closed
ftab opened this issue Sep 18, 2017 · 1 comment
Closed

Warning: use of old-style cast #48

ftab opened this issue Sep 18, 2017 · 1 comment

Comments

@ftab
Copy link

ftab commented Sep 18, 2017

In Qt Creator, with the Clang code model selected (help -> about plugins -> C++), I see the following warning:

Semantic Issue -Wold-style-cast
23:5: warning: use of old-style cast
enum.h:1089:21: note: expanded from macro 'BETTER_ENUM'
enum.h:679:23: note: expanded from macro 'BETTER_ENUMS_TYPE'
enum.h:500:13: note: expanded from macro 'BETTER_ENUMS_EAT_ASSIGN'
:0:0: note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
enum.h:114:28: note: expanded from macro 'BETTER_ENUMS_ID'
enum.h:114:28: note: expanded from macro 'BETTER_ENUMS_ID'
enum.h:114:28: note: expanded from macro 'BETTER_ENUMS_ID'

(If I have the default code model selected, I get warnings whenever I use BETTER_ENUM(), and code completion/coloring doesn't work for those enums, so I kinda have to use the clang code model)

@aantron
Copy link
Owner

aantron commented Aug 17, 2019

Presumably fixed in #74 (thanks @FelipeLema, @MartinDelille).

@aantron aantron closed this as completed Aug 17, 2019
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

No branches or pull requests

2 participants