Error: COMPILER_WARNING: [#def1] kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp: scope_hint: In member function ‘Sonnet::Token Sonnet::BreakTokenizerPrivate::next()’ kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp:130:33: warning[-Wdangling-reference]: possibly dangling reference to a temporary # 130 | const TextBreaks::Position &textBreak = this->breaks().at(itemPosition); # | ^~~~~~~~~ kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp:130:62: note: the temporary was destroyed at the end of the full expression ‘Sonnet::BreakTokenizerPrivate::breaks() const().QList<Sonnet::TextBreaks::Position>::at(((Sonnet::BreakTokenizerPrivate*)this)->Sonnet::BreakTokenizerPrivate::itemPosition)’ # 130 | const TextBreaks::Position &textBreak = this->breaks().at(itemPosition); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ # 128| itemPosition++; # 129| # 130|-> const TextBreaks::Position &textBreak = this->breaks().at(itemPosition); # 131| QStringView token = QStringView(buffer).mid(textBreak.start, textBreak.length); # 132| last = {token, textBreak.start};
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-116.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf5-sonnet-5.116.0-1.fc41 |
store-results-to | /tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.tar.xz |
time-created | 2024-07-03 13:55:58 |
time-finished | 2024-07-03 13:57:30 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |