Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 090f074

Browse filesBrowse files
committed
Preprocessor5: fix testcase Rule MSC38-C
1 parent 2f23d33 commit 090f074
Copy full SHA for 090f074

File tree

4 files changed

+6
-2
lines changed
Filter options

4 files changed

+6
-2
lines changed
+1Lines 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

Copy file name to clipboard
+4Lines 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

Copy file name to clipboardExpand all lines: c/cert/test/rules/MSC38-C/test.c
+1-1Lines 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

Copy file name to clipboardExpand all lines: c/common/test/includes/standard-library/assert.h
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.