summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-09 08:43:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-09 08:48:25 +0200
commitacb53d53c900f21b5940554dfba8d7ad94f4bcba (patch)
treed32d39814572bf671afdb946a219ecc99d266480 /testsuites
parentftpd: Remove superfluous temporary buffer (diff)
downloadrtems-acb53d53c900f21b5940554dfba8d7ad94f4bcba.tar.bz2
posix: Remove static assertion
Standard C does not allow pointer operands in an integer constant expressions. GCC issues only a -Wpedantic warning in the removed static assertion. However, clang is pedantic by default and issues an error. Rely on the test case instead.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psxsem01/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxsem01/init.c b/testsuites/psxtests/psxsem01/init.c
index dfc2ed5670..899e324fa0 100644
--- a/testsuites/psxtests/psxsem01/init.c
+++ b/testsuites/psxtests/psxsem01/init.c
@@ -193,6 +193,7 @@ static void test_sem_null(void)
int val;
struct timespec to;
+ /* This equality is important for POSIX_SEMAPHORE_VALIDATE_OBJECT() */
rtems_test_assert( NULL == SEM_FAILED );
errno = 0;