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

Provide nicer error messages on misuse of the library #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Quincunx271
Copy link
Owner

No description provided.

If the user forgets the final `()` to invoke the function, they will now
receive a warning. This is only relevant for void-returning functions
where the result is not otherwise stored. For functions which return a
value, this is both impossible to check and unnecessary, because they
will probably receive other compile errors down the line.
Even though we used feature-test macros, Clang emitted warnings about
using features from C++Future. This change silences those warnings by
using _Pragma to ignonre the particular warning flag for only the
offending constructs.

This requires quite a bit of compiler detection preprocessor code, but
short of Clang getting its act together with these warnings around
feature-test macros, there's not much else we can realistically do.
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.

1 participant