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

Empty program causes unused expr warning in C++ code #92

Open
kevin1 opened this issue Nov 24, 2015 · 0 comments
Open

Empty program causes unused expr warning in C++ code #92

kevin1 opened this issue Nov 24, 2015 · 0 comments
Labels

Comments

@kevin1
Copy link
Collaborator

kevin1 commented Nov 24, 2015

Very low priority.

Clang output:

<stdin>:8:1: warning: expression result unused [-Wunused-value]
LIT_UNIT;
^~~~~~~~
1 warning generated.

Generated code:

#include <iostream>
#include <string>
#include <vector>
#include "support.hpp"
int main()
{
return [&] () -> int64_t {
LIT_UNIT;
return 0;
}
();
}
@kevin1 kevin1 added the bug label Nov 24, 2015
@kevin1 kevin1 changed the title Empty program causes unused expr in C++ code Empty program causes unused expr warning in C++ code Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant