Skip to content

Commit

Permalink
tests: -Wformat= warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Oct 6, 2022
1 parent 47347ab commit 69c718e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_fprintf_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int test_fprintf_s(void) {
/*--------------------------------------------------*/
print_msvcrt(use_msvcrt);

rc = fprintf_s(NULL, "%s", NULL);
rc = fprintf_s(NULL, "%s", (char*)NULL);
init_msvcrt(rc == -ESNULLP, &use_msvcrt);
NEGERR_MSVC(ESNULLP, EOF);

Expand Down Expand Up @@ -101,7 +101,7 @@ int test_fprintf_s(void) {

/*--------------------------------------------------*/

rc = fprintf_s(out, "%s", NULL);
rc = fprintf_s(out, "%s", (char*)NULL);
NEGERR(ESNULLP)

/*--------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion tests/test_snprintf_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int test_snprintf_s(void) {

/*--------------------------------------------------*/

rc = snprintf_s(str1, LEN, "%p", NULL); // %p NULL is allowed
rc = snprintf_s(str1, LEN, "%p", (char*)NULL); // %p NULL is allowed
NOERR();

/*--------------------------------------------------*/
Expand Down

0 comments on commit 69c718e

Please sign in to comment.