Skip to content

Commit b46aac0

Browse files
committed
fixed a few valueFlowBailoutIncompleteVar selfcheck warnings
1 parent 2236046 commit b46aac0

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
@@ -68,7 +68,7 @@ jobs:
6868
./cppcheck $selfcheck_options externals/simplecpp || ec=1
6969
# self check lib/cli
7070
mkdir b1
71-
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json cli || ec=1
71+
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --library=posix cli || ec=1
7272
./cppcheck $selfcheck_options $cppcheck_options --cppcheck-build-dir=b1 --addon=naming.json --enable=internal lib || ec=1
7373
# check gui with qt settings
7474
mkdir b2

cfg/posix.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5767,6 +5767,8 @@ 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"/>
5771+
<define name="SA_ONSTACK" value="0x08000000"/>
57705772
<!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -->
57715773
<!-- int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); -->
57725774
<function name="sigaltstack">

cfg/std.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9121,14 +9121,15 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
91219121
<podtype name="std::atomic_ptrdiff_t"/>
91229122
<podtype name="std::atomic_intmax_t"/>
91239123
<podtype name="std::atomic_uintmax_t"/>
9124-
<!-- https://en.cppreference.com/w/c/program/SIG_types
9125-
Values are in alignment with posix.cfg -->
9124+
<!-- https://en.cppreference.com/w/c/program/SIG_types -->
91269125
<define name="SIGTERM" value="15"/>
91279126
<define name="SIGSEGV" value="11"/>
91289127
<define name="SIGINT" value="2"/>
91299128
<define name="SIGKILL" value="9"/>
91309129
<define name="SIGABRT" value="6"/>
91319130
<define name="SIGFPE" value="8"/>
9131+
<!-- https://en.cppreference.com/w/c/program/SIG_strategies -->
9132+
<define name="SIG_DFL" value="0"/>
91329133
<!-- http://www.cplusplus.com/reference/cstdio/fseek/ -->
91339134
<define name="SEEK_CUR" value="1"/>
91349135
<define name="SEEK_END" value="2"/>
@@ -9140,4 +9141,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
91409141
<define name="FE_DIVBYZERO" value="8"/>
91419142
<define name="FE_INVALID" value="16"/>
91429143
<define name="FE_ALL_EXCEPT" value="31"/>
9144+
<!-- https://en.cppreference.com/w/c/io -->
9145+
<define name="EOF" value="-1"/>
91439146
</def>

0 commit comments

Comments
 (0)