[rtems commit] block[08|09|10]/init.c: Include <stdlib.h> to fix warning on exit()
Joel Sherrill
joel at rtems.org
Wed Apr 20 16:01:09 UTC 2016
Module: rtems
Branch: master
Commit: 4cf41fd5113858fbfd61d8213df430aa4378eabb
Changeset: http://git.rtems.org/rtems/commit/?id=4cf41fd5113858fbfd61d8213df430aa4378eabb
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Apr 20 11:00:57 2016 -0500
block[08|09|10]/init.c: Include <stdlib.h> to fix warning on exit()
---
testsuites/libtests/block08/init.c | 2 ++
testsuites/libtests/block09/init.c | 1 +
testsuites/libtests/block10/init.c | 1 +
3 files changed, 4 insertions(+)
diff --git a/testsuites/libtests/block08/init.c b/testsuites/libtests/block08/init.c
index 426138f..84e755f 100644
--- a/testsuites/libtests/block08/init.c
+++ b/testsuites/libtests/block08/init.c
@@ -24,6 +24,8 @@
#include "bdbuf_tests.h"
+#include <stdlib.h> /* for exit */
+
const char rtems_test_name[] = "BLOCK 8";
rtems_task Init(rtems_task_argument argument)
diff --git a/testsuites/libtests/block09/init.c b/testsuites/libtests/block09/init.c
index 6d156ce..2d7cc7a 100644
--- a/testsuites/libtests/block09/init.c
+++ b/testsuites/libtests/block09/init.c
@@ -26,6 +26,7 @@
#include <assert.h>
#include <errno.h>
+#include <stdlib.h>
#include <rtems.h>
#include <rtems/bdbuf.h>
diff --git a/testsuites/libtests/block10/init.c b/testsuites/libtests/block10/init.c
index 61889ab..fac6781 100644
--- a/testsuites/libtests/block10/init.c
+++ b/testsuites/libtests/block10/init.c
@@ -25,6 +25,7 @@
#include <assert.h>
#include <errno.h>
+#include <stdlib.h>
#include <rtems.h>
#include <rtems/bdbuf.h>
More information about the vc
mailing list