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: ordered comparison of function pointers ('PtrToFunc' (aka 'void (*)()') and 'PtrToFunc') #422

Open
yurivict opened this issue Jun 22, 2022 · 0 comments

Comments

@yurivict
Copy link

This clang warning seems to indicate a real coding error:

In file included from src/FileCmd/FileCmdExport.cpp:11:
In file included from src/main/MainWindow.h:16:
In file included from src/Guideline/Guidelines.h:15:
In file included from src/Transformation/Transformation.h:10:
In file included from src/Cmd/CmdMediator.h:11:
In file included from src/Document/Document.h:10:
In file included from src/CoordSystem/CoordSystemContext.h:10:
In file included from src/CoordSystem/CoordSystem.h:10:
In file included from src/CoordSystem/CoordSystemInterface.h:24:
src/Callback/functor.h:1439:41: warning: ordered comparison of function pointers ('PtrToFunc' (aka 'void (*)()') and 'PtrToFunc') [-Wordered-compare-function-pointers]
                        return lhs.func < rhs.func;
                               ~~~~~~~~ ^ ~~~~~~~~
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

1 participant