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

Dangerous warning on MacOS with clang #118

Closed
igormironchik opened this issue Feb 2, 2024 · 2 comments
Closed

Dangerous warning on MacOS with clang #118

igormironchik opened this issue Feb 2, 2024 · 2 comments

Comments

@igormironchik
Copy link

igormironchik commented Feb 2, 2024

.../JKQtPlotter/lib/jkqtmathtext/jkqtmathtext.h:245:29:
warning: deleting pointer to incomplete type 'JKQTMathTextNode'
may cause undefined behavior [-Wdelete-incomplete]
            if (parsedNode) delete parsedNode;
                            ^      ~~~~~~~~~~
.../JKQtPlotter/lib/jkqtmathtext/jkqtmathtext.h:46:7:
note: forward declaration of 'JKQTMathTextNode'
class JKQTMathTextNode; // forward
      ^
jkriege2 added a commit that referenced this issue Feb 2, 2024
…ser:igormironchik for reporting): a forward-declared class (i.e. incomplete type) was deleted
@jkriege2
Copy link
Owner

jkriege2 commented Feb 2, 2024

should be fixed via 1858385

Could you please verify?

AND: Thanks for reporting!

@igormironchik
Copy link
Author

I confirm - it's fixed.

@jkriege2 jkriege2 closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants