We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89cd63b commit defffdcCopy full SHA for defffdc
source.cpp
@@ -1,6 +1,9 @@
1
#include <iostream>
2
3
+[[nodiscard]] int func() { return 42; }
4
+
5
int main() {
6
int unused_variable = 42;
7
+ func();
8
std::cout << "Hello, World!" << std::endl;
9
}
0 commit comments