Skip to content

Commit

Permalink
fixed a few valueFlowBailoutIncompleteVar selfcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jul 1, 2024
1 parent 1b3182a commit f4679c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
./cppcheck $selfcheck_options externals/simplecpp || ec=1
# self check lib/cli
mkdir b1
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json cli lib || ec=1
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --library=posix cli || ec=1
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json lib || ec=1
# check gui with qt settings
mkdir b2
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b2 -DQT_VERSION=0x050000 -DQ_MOC_OUTPUT_REVISION=67 -DQT_CHARTS_LIB --library=qt --addon=naming.json -Icmake.output/gui -Igui gui/*.cpp cmake.output/gui || ec=1
Expand Down
2 changes: 2 additions & 0 deletions cfg/posix.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5767,6 +5767,8 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-bool/>
</arg>
</function>
<define name="SA_SIGINFO" value="4"/>
<define name="SA_ONSTACK" value="0x08000000"/>
<!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -->
<!-- int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); -->
<function name="sigaltstack">
Expand Down
7 changes: 5 additions & 2 deletions cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9105,14 +9105,15 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<podtype name="std::atomic_ptrdiff_t"/>
<podtype name="std::atomic_intmax_t"/>
<podtype name="std::atomic_uintmax_t"/>
<!-- https://en.cppreference.com/w/c/program/SIG_types
Values are in alignment with posix.cfg -->
<!-- https://en.cppreference.com/w/c/program/SIG_types -->
<define name="SIGTERM" value="15"/>
<define name="SIGSEGV" value="11"/>
<define name="SIGINT" value="2"/>
<define name="SIGKILL" value="9"/>
<define name="SIGABRT" value="6"/>
<define name="SIGFPE" value="8"/>
<!-- https://en.cppreference.com/w/c/program/SIG_strategies -->
<define name="SIG_DFL" value="0"/>
<!-- http://www.cplusplus.com/reference/cstdio/fseek/ -->
<define name="SEEK_CUR" value="1"/>
<define name="SEEK_END" value="2"/>
Expand All @@ -9124,4 +9125,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<define name="FE_DIVBYZERO" value="8"/>
<define name="FE_INVALID" value="16"/>
<define name="FE_ALL_EXCEPT" value="31"/>
<!-- https://en.cppreference.com/w/c/io -->
<define name="EOF" value="-1"/>
</def>

0 comments on commit f4679c7

Please sign in to comment.