[rtems commit] rtems: Fix RTEMS_NO_TIMEOUT define
Sebastian Huber
sebh at rtems.org
Thu Feb 2 08:18:20 UTC 2017
Module: rtems
Branch: master
Commit: 6dd96afce9b18a20d426d578a861e8f73e510089
Changeset: http://git.rtems.org/rtems/commit/?id=6dd96afce9b18a20d426d578a861e8f73e510089
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Feb 2 09:16:53 2017 +0100
rtems: Fix RTEMS_NO_TIMEOUT define
Cast the internal WATCHDOG_NO_TIMEOUT to the right type for a Classic
API interval to avoid implict type conversion warnings.
---
cpukit/rtems/include/rtems.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/rtems/include/rtems.h b/cpukit/rtems/include/rtems.h
index 2c27e5f..8e536b4 100644
--- a/cpukit/rtems/include/rtems.h
+++ b/cpukit/rtems/include/rtems.h
@@ -166,7 +166,7 @@ const char *rtems_get_version_string(void);
*
* This is actually an illegal interval value.
*/
-#define RTEMS_NO_TIMEOUT WATCHDOG_NO_TIMEOUT
+#define RTEMS_NO_TIMEOUT ((rtems_interval) WATCHDOG_NO_TIMEOUT)
/**
* @brief An MPCI must support packets of at least this size.
More information about the vc
mailing list