mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
CPP: Test fixes as a result of changes.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
| custom_printf.cpp:31:5:31:12 | call to myPrintf | Format expects 2 arguments but given 3 |
|
||||
| custom_printf.cpp:44:2:44:7 | call to printf | Format expects 0 arguments but given 2 |
|
||||
| macros.cpp:12:2:12:31 | call to printf | Format expects 2 arguments but given 3 |
|
||||
| macros.cpp:16:2:16:30 | call to printf | Format expects 2 arguments but given 3 |
|
||||
| test.c:7:2:7:7 | call to printf | Format expects 0 arguments but given 1 |
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
| custom_printf.cpp:29:5:29:12 | call to myPrintf | Format expects 2 arguments but given 1 |
|
||||
| custom_printf.cpp:45:2:45:7 | call to printf | Format expects 2 arguments but given 0 |
|
||||
| macros.cpp:14:2:14:37 | call to printf | Format expects 4 arguments but given 3 |
|
||||
| macros.cpp:21:2:21:36 | call to printf | Format expects 4 arguments but given 3 |
|
||||
| test.c:9:2:9:7 | call to printf | Format expects 1 arguments but given 0 |
|
||||
|
||||
@@ -41,6 +41,6 @@ void test_custom_printf2()
|
||||
{
|
||||
// notTheFormat format ...
|
||||
printf(0, "%i %i", 100, 200); // GOOD
|
||||
printf("", "%i %i", 100, 200); // GOOD [FALSE POSITIVE]
|
||||
printf("%i %i", "" ); // GOOD [FALSE POSITIVE]
|
||||
printf("", "%i %i", 100, 200); // GOOD
|
||||
printf("%i %i", "" ); // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user