Skip to content

Comments

update#3

Merged
yaito3014 merged 8 commits intomainfrom
investigate
Apr 25, 2025
Merged

update#3
yaito3014 merged 8 commits intomainfrom
investigate

Conversation

@yaito3014
Copy link
Member

No description provided.

@cppwarningnotifier
Copy link

detected warnings in the compilation output:

compilation output

#cppwarningnotifier commit=b1f425fdd949bc33191b94d28860e1731171d962
[ 50%] Building CXX object CMakeFiles/hello_world.dir/source.cpp.o
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp: In function ‘int main()’:
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:7:7: warning: ignoring return value of ‘int func()’, declared with attribute ‘nodiscard’ [-Wunused-result]
    7 |   func();
      |   ~~~~^~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:19: note: declared here
    3 | [[nodiscard]] int func() { return 42; }
      |                   ^~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:6:7: warning: unused variable ‘unused_variable’ [-Wunused-variable]
    6 |   int unused_variable = 42;
      |       ^~~~~~~~~~~~~~~
[100%] Linking CXX executable hello_world
[100%] Built target hello_world

@cppwarningnotifier
Copy link

detected warnings in the compilation output:

compilation output

#cppwarningnotifier commit=575c39a407a4f0c5e78e75fd3836fd068f11d951
[ 50%] Building CXX object CMakeFiles/hello_world.dir/source.cpp.o
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp: In function ‘int main()’:
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:7:7: warning: ignoring return value of ‘int func()’, declared with attribute ‘nodiscard’ [-Wunused-result]
    7 |   func();
      |   ~~~~^~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:19: note: declared here
    3 | [[nodiscard]] int func() { return 42; }
      |                   ^~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:6:7: warning: unused variable ‘unused_variable’ [-Wunused-variable]
    6 |   int unused_variable = 42;
      |       ^~~~~~~~~~~~~~~
[100%] Linking CXX executable hello_world
[100%] Built target hello_world

@cppwarningnotifier
Copy link

detected warnings in the compilation output:

compilation output

#cppwarningnotifier commit=60b58d2d126a56b0f07a59f012683c0b07ebf9f1
[ 50%] Building CXX object CMakeFiles/hello_world.dir/source.cpp.o
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp: In function ‘int main()’:
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:7:7: warning: ignoring return value of ‘int func()’, declared with attribute ‘nodiscard’ [-Wunused-result]
    7 |   func();
      |   ~~~~^~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:19: note: declared here
    3 | [[nodiscard]] int func() { return 42; }
      |                   ^~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:6:7: warning: unused variable ‘unused_variable’ [-Wunused-variable]
    6 |   int unused_variable = 42;
      |       ^~~~~~~~~~~~~~~
[100%] Linking CXX executable hello_world
[100%] Built target hello_world

@yaito3014 yaito3014 merged commit 1fc57d8 into main Apr 25, 2025
2 checks passed
@yaito3014 yaito3014 deleted the investigate branch April 25, 2025 21:38
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

Successfully merging this pull request may close these issues.

1 participant