Skip to content

Comments

bugfix#4

Merged
yaito3014 merged 2 commits intomainfrom
bugfix
Apr 25, 2025
Merged

bugfix#4
yaito3014 merged 2 commits intomainfrom
bugfix

Conversation

@yaito3014
Copy link
Member

No description provided.

@cppwarningnotifier
Copy link

detected warnings in the compilation output:

compilation output

#cppwarningnotifier commit=7305da8abab5397ae16145d75a3520fba68118a1
[ 50%] Building CXX object CMakeFiles/hello_world.dir/source.cpp.o
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:2: warning: #warning before C++23 is a GCC extension
    3 | #warning "WARNING!!!!"
      |  ^~~~~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:2: warning: #warning "WARNING!!!!" [-Wcpp]
/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:9:7: warning: ignoring return value of ‘int func()’, declared with attribute ‘nodiscard’ [-Wunused-result]
    9 |   func();
      |   ~~~~^~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:5:19: note: declared here
    5 | [[nodiscard]] int func() { return 42; }
      |                   ^~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:8:7: warning: unused variable ‘unused_variable’ [-Wunused-variable]
    8 |   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=e532257ce2877c4d0652e417738ece9e342c5a08
[ 50%] Building CXX object CMakeFiles/hello_world.dir/source.cpp.o
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:2: warning: #warning before C++23 is a GCC extension
    3 | #warning "WARNING!!!!"
      |  ^~~~~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:3:2: warning: #warning "WARNING!!!!" [-Wcpp]
/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:9:7: warning: ignoring return value of ‘int func()’, declared with attribute ‘nodiscard’ [-Wunused-result]
    9 |   func();
      |   ~~~~^~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:5:19: note: declared here
    5 | [[nodiscard]] int func() { return 42; }
      |                   ^~~~
/home/runner/work/cpp-warning-notifier/cpp-warning-notifier/source.cpp:8:7: warning: unused variable ‘unused_variable’ [-Wunused-variable]
    8 |   int unused_variable = 42;
      |       ^~~~~~~~~~~~~~~
[100%] Linking CXX executable hello_world
[100%] Built target hello_world

@yaito3014 yaito3014 merged commit fb8ae0f into main Apr 25, 2025
2 checks passed
@yaito3014 yaito3014 deleted the bugfix branch April 25, 2025 22:35
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