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

scary looking warnings in Calypso/ddmd/cpp/ #94

Open
timotheecour opened this issue Jan 23, 2018 · 0 comments
Open

scary looking warnings in Calypso/ddmd/cpp/ #94

timotheecour opened this issue Jan 23, 2018 · 0 comments

Comments

@timotheecour
Copy link
Collaborator

potential sources of bugs; would be nice to enable -Werror (perhaps with -Wno-error=foo to avoid error-ing on stuff that's originating from upstream ldc code, cf https://stackoverflow.com/questions/15500143/clang-promoting-all-warnings-to-errors-except-for)

ddmd/cpp/cppmodule.cpp:1801:25: warning: delete called on non-final 'cpp::Module' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
                        delete m;

Calypso/ddmd/cpp/calypso.cpp:1078:9: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference]
        *static_cast<clang::CompilerInstance*>(nullptr), pchHeader, pchFilename, std::move(OS), Buffer));

ddmd/cpp/cppexpression.cpp:126:13: note: add missing switch cases
    switch (Op)

Calypso/ddmd/cpp/cppmodule.cpp:1130:19: warning: variable 'tp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
    else if (auto TempTemp =

// etc; plus a bunch of warning: unused variable 'TND'
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