test std.cfg: Improved testing for strcat() and wcscat().
This commit is contained in:
parent
ca449a7f27
commit
d7c8c46c10
|
@ -5389,7 +5389,7 @@ HFONT CreateFont(
|
||||||
<define name="RPC_C_AUTHN_LEVEL_CALL" value="3"/>
|
<define name="RPC_C_AUTHN_LEVEL_CALL" value="3"/>
|
||||||
<define name="RPC_C_AUTHN_LEVEL_PKT" value="4"/>
|
<define name="RPC_C_AUTHN_LEVEL_PKT" value="4"/>
|
||||||
<define name="RPC_C_AUTHN_LEVEL_PKT_INTEGRITY" value="5"/>
|
<define name="RPC_C_AUTHN_LEVEL_PKT_INTEGRITY" value="5"/>
|
||||||
<define name="RPC_C_AUTHN_LEVEL_PKT_PRIVACY" value="6"/>
|
<define name="RPC_C_AUTHN_LEVEL_PKT_PRIVACY" value="6"/>
|
||||||
<define name="RPC_C_AUTHN_NONE" value="0"/>
|
<define name="RPC_C_AUTHN_NONE" value="0"/>
|
||||||
<define name="RPC_C_AUTHN_DCE_PRIVATE" value="1"/>
|
<define name="RPC_C_AUTHN_DCE_PRIVATE" value="1"/>
|
||||||
<define name="RPC_C_AUTHN_DCE_PUBLIC" value="2"/>
|
<define name="RPC_C_AUTHN_DCE_PUBLIC" value="2"/>
|
||||||
|
|
|
@ -2840,20 +2840,34 @@ void uninitvar_setvbuf(void)
|
||||||
(void)setvbuf(stream,buf,mode,size);
|
(void)setvbuf(stream,buf,mode,size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninitvar_strcat(void)
|
void uninitvar_strcat(char *dest, const char * const source)
|
||||||
{
|
{
|
||||||
char *deststr;
|
char *deststr;
|
||||||
char *srcstr;
|
char *srcstr;
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)strcat(deststr,srcstr);
|
(void)strcat(deststr,srcstr);
|
||||||
|
// cppcheck-suppress uninitvar
|
||||||
|
(void)strcat(dest,srcstr);
|
||||||
|
// cppcheck-suppress uninitvar
|
||||||
|
(void)strcat(deststr,source);
|
||||||
|
|
||||||
|
// no warning shall be shown for
|
||||||
|
(void)strcat(dest,source);
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninitvar_wcscat(void)
|
void uninitvar_wcscat(wchar_t *dest, const wchar_t * const source)
|
||||||
{
|
{
|
||||||
wchar_t *deststr;
|
wchar_t *deststr;
|
||||||
wchar_t *srcstr;
|
wchar_t *srcstr;
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
(void)wcscat(deststr,srcstr);
|
(void)wcscat(deststr,srcstr);
|
||||||
|
// cppcheck-suppress uninitvar
|
||||||
|
(void)wcscat(dest,srcstr);
|
||||||
|
// cppcheck-suppress uninitvar
|
||||||
|
(void)wcscat(deststr,source);
|
||||||
|
|
||||||
|
// no warning shall be shown for
|
||||||
|
(void)wcscat(dest,source);
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninitvar_wcrtomb(void)
|
void uninitvar_wcrtomb(void)
|
||||||
|
|
Loading…
Reference in New Issue