File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4729,6 +4729,18 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
47294729 <valid>0:</valid>
47304730 </arg>
47314731 </function>
4732+ <!-- https://man7.org/linux/man-pages/man3/wcwidth.3.html -->
4733+ <!-- int wcwidth(wchar_t c); -->
4734+ <function name =" wcwidth" >
4735+ <returnValue type =" int" />
4736+ <use-retval/>
4737+ <noreturn>false</noreturn>
4738+ <leak-ignore/>
4739+ <arg nr =" 1" direction =" in" >
4740+ <not-uninit/>
4741+ <not-bool/>
4742+ </arg>
4743+ </function>
47324744 <!-- http://man7.org/linux/man-pages/man3/ffs.3.html -->
47334745 <!-- int ffs(int i); -->
47344746 <function name =" ffs" >
Original file line number Diff line number Diff line change 3131#include <wchar.h>
3232#include <string.h>
3333
34+ int uninitvar_wcwidth (const wchar_t c )
35+ {
36+ wchar_t wc ;
37+ // cppcheck-suppress uninitvar
38+ (void )wcwidth (wc );
39+ // No warning is expected
40+ return wcwidth (c );
41+ }
42+
3443int nullPointer_wcsnlen (const wchar_t * s , size_t n )
3544{
3645 // cppcheck-suppress nullPointer
You can’t perform that action at this time.
0 commit comments