Skip to content

Commit b589377

Browse files
committed
fixed a few valueFlowBailoutIncompleteVar selfcheck warnings
1 parent 98467cc commit b589377

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
./cppcheck $selfcheck_options externals/simplecpp || ec=1
6666
# self check lib/cli
6767
mkdir b1
68-
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json cli lib || ec=1
68+
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --library=posix cli || ec=1
69+
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json lib || ec=1
6970
# check gui with qt settings
7071
mkdir b2
7172
./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

cfg/posix.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5767,6 +5767,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
57675767
<not-bool/>
57685768
</arg>
57695769
</function>
5770+
<define name="SA_SIGINFO" value="4"/>
57705771
<!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -->
57715772
<!-- int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); -->
57725773
<function name="sigaltstack">

cfg/std.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9105,14 +9105,15 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
91059105
<podtype name="std::atomic_ptrdiff_t"/>
91069106
<podtype name="std::atomic_intmax_t"/>
91079107
<podtype name="std::atomic_uintmax_t"/>
9108-
<!-- https://en.cppreference.com/w/c/program/SIG_types
9109-
Values are in alignment with posix.cfg -->
9108+
<!-- https://en.cppreference.com/w/c/program/SIG_types -->
91109109
<define name="SIGTERM" value="15"/>
91119110
<define name="SIGSEGV" value="11"/>
91129111
<define name="SIGINT" value="2"/>
91139112
<define name="SIGKILL" value="9"/>
91149113
<define name="SIGABRT" value="6"/>
91159114
<define name="SIGFPE" value="8"/>
9115+
<!-- https://en.cppreference.com/w/c/program/SIG_strategies -->
9116+
<define name="SIG_DFL" value="0"/>
91169117
<!-- http://www.cplusplus.com/reference/cstdio/fseek/ -->
91179118
<define name="SEEK_CUR" value="1"/>
91189119
<define name="SEEK_END" value="2"/>
@@ -9124,4 +9125,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
91249125
<define name="FE_DIVBYZERO" value="8"/>
91259126
<define name="FE_INVALID" value="16"/>
91269127
<define name="FE_ALL_EXCEPT" value="31"/>
9128+
<!-- https://en.cppreference.com/w/c/io -->
9129+
<define name="EOF" value="-1"/>
91279130
</def>

0 commit comments

Comments
 (0)