Skip to content

Commit defffdc

Browse files
committed
more warnings
1 parent 89cd63b commit defffdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include <iostream>
22

3+
[[nodiscard]] int func() { return 42; }
4+
35
int main() {
46
int unused_variable = 42;
7+
func();
58
std::cout << "Hello, World!" << std::endl;
69
}

0 commit comments

Comments
 (0)