Skip to content

Commit a98ed76

Browse files
committed
fixed a few valueFlowBailoutIncompleteVar selfcheck warnings
1 parent 179df83 commit a98ed76

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
./cppcheck $selfcheck_options externals || ec=1
7171
# self check lib/cli
7272
mkdir b1
73-
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json cli || ec=1
73+
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --library=posix cli || ec=1
7474
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --enable=internal lib || ec=1
7575
# check gui with qt settings
7676
mkdir b2

cfg/posix.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5775,6 +5775,8 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
57755775
<not-bool/>
57765776
</arg>
57775777
</function>
5778+
<define name="SA_SIGINFO" value="4"/>
5779+
<define name="SA_ONSTACK" value="0x08000000"/>
57785780
<!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -->
57795781
<!-- int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); -->
57805782
<function name="sigaltstack">

cfg/std.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9184,14 +9184,15 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
91849184
<podtype name="std::atomic_ptrdiff_t"/>
91859185
<podtype name="std::atomic_intmax_t"/>
91869186
<podtype name="std::atomic_uintmax_t"/>
9187-
<!-- https://en.cppreference.com/w/c/program/SIG_types
9188-
Values are in alignment with posix.cfg -->
9187+
<!-- https://en.cppreference.com/w/c/program/SIG_types -->
91899188
<define name="SIGTERM" value="15"/>
91909189
<define name="SIGSEGV" value="11"/>
91919190
<define name="SIGINT" value="2"/>
91929191
<define name="SIGKILL" value="9"/>
91939192
<define name="SIGABRT" value="6"/>
91949193
<define name="SIGFPE" value="8"/>
9194+
<!-- https://en.cppreference.com/w/c/program/SIG_strategies -->
9195+
<define name="SIG_DFL" value="0"/>
91959196
<!-- http://www.cplusplus.com/reference/cstdio/fseek/ -->
91969197
<define name="SEEK_CUR" value="1"/>
91979198
<define name="SEEK_END" value="2"/>
@@ -9203,4 +9204,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
92039204
<define name="FE_DIVBYZERO" value="8"/>
92049205
<define name="FE_INVALID" value="16"/>
92059206
<define name="FE_ALL_EXCEPT" value="31"/>
9207+
<!-- https://en.cppreference.com/w/c/io -->
9208+
<define name="EOF" value="-1"/>
92069209
</def>

0 commit comments

Comments
 (0)