Skip to content

Commit 090f074

Browse files
committed
Preprocessor5: fix testcase Rule MSC38-C
1 parent 2f23d33 commit 090f074

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
| assert.h:2:6:2:11 | assert | Supression of standard library macro assert. |
12
| test.c:3:12:3:16 | errno | Supression of standard library macro errno. |
23
| test.c:10:21:10:26 | assert | Supression of standard library macro assert. |

c/cert/test/rules/MSC38-C/assert.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#undef assert
2+
void assert(int i); // NON_COMPLIANT
3+
4+
#define assert(x) (void)0

c/cert/test/rules/MSC38-C/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <assert.h>
1+
#include "assert.h"
22

33
extern int errno; // NON_COMPLIANT
44

c/common/test/includes/standard-library/assert.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <features.h>
22

33
#undef assert
4-
void assert(int i);
54

65
#ifdef NDEBUG
76
#define assert(x) (void)0

0 commit comments

Comments
 (0)