diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-01 13:00:15 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-01 14:03:12 +0100 |
commit | 70f559d835f4d3858fbdbb4bce2464a4cfabfda8 (patch) | |
tree | bee06eb9cc493999eb40292d7841d2cdf4a01663 | |
parent | monitor: Add support for BSD wakeup messages (diff) | |
download | rtems-70f559d835f4d3858fbdbb4bce2464a4cfabfda8.tar.bz2 |
rtems: Fix RTEMS_MAXIMUM_PRIORITY define
Cast the internal PRIORITY_MAXIMUM to the right type for a Classic API
task priority to avoid integer conversion warnings.
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/tasks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h index 05f7ef325e..88e43556ce 100644 --- a/cpukit/rtems/include/rtems/rtems/tasks.h +++ b/cpukit/rtems/include/rtems/rtems/tasks.h @@ -101,7 +101,7 @@ typedef uint32_t rtems_task_priority; * want to ensure that a task does not executes during * certain operations such as a system mode change. */ -#define RTEMS_MAXIMUM_PRIORITY PRIORITY_MAXIMUM +#define RTEMS_MAXIMUM_PRIORITY ((rtems_task_priority) PRIORITY_MAXIMUM) /** * The following constant is passed to rtems_task_set_priority when the |