Bug Summary

File:/home/joel/rtems-4.11-work/build/rtems/c/src/../../cpukit/libmisc/monitor/mon-queue.c
Location:line 65, column 5
Description:Value stored to 'length' is never read

Annotated Source Code

1/*
2 * $Id: mon-queue.c,v 1.11 2009/01/02 13:01:21 ralf Exp $
3 */
4
5#ifdef HAVE_CONFIG_H1
6#include "config.h"
7#endif
8
9#include <rtems.h>
10#include <rtems/monitor.h>
11
12#include <stdio.h>
13
14void
15rtems_monitor_queue_canonical(
16 rtems_monitor_queue_t *canonical_queue,
17 void *queue_void
18)
19{
20 Message_queue_Control *rtems_queue = (Message_queue_Control *) queue_void;
21
22 canonical_queue->attributes = rtems_queue->attribute_set;
23 canonical_queue->maximum_message_size = rtems_queue->message_queue.maximum_message_size;
24 canonical_queue->maximum_pending_messages = rtems_queue->message_queue.maximum_pending_messages;
25 canonical_queue->number_of_pending_messages = rtems_queue->message_queue.number_of_pending_messages;
26}
27
28void
29rtems_monitor_queue_dump_header(
30 bool_Bool verbose __attribute__((unused))
31)
32{
33 fprintf(stdoutstdout,"\
34 ID NAME ATTRIBUTES PEND MAXPEND MAXSIZE\n");
35/*23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
360 1 2 3 4 5 6 7 */
37 rtems_monitor_separator();
38}
39
40
41/*
42 * Dump out the "next" queue indicated by 'id'.
43 * Returns next one to check.
44 * Returns RTEMS_OBJECT_ID_FINAL when all done
45 */
46
47void
48rtems_monitor_queue_dump(
49 rtems_monitor_queue_t *monitor_queue,
50 bool_Bool verbose __attribute__((unused))
51)
52{
53 uint32_t length = 0;
54
55 length += rtems_monitor_dump_id(monitor_queue->id);
56 length += rtems_monitor_pad(11, length);
57 length += rtems_monitor_dump_name(monitor_queue->id);
58 length += rtems_monitor_pad(19, length);
59 length += rtems_monitor_dump_attributes(monitor_queue->attributes);
60 length += rtems_monitor_pad(31, length);
61 length += rtems_monitor_dump_decimal(monitor_queue->number_of_pending_messages);
62 length += rtems_monitor_pad(39, length);
63 length += rtems_monitor_dump_decimal(monitor_queue->maximum_pending_messages);
64 length += rtems_monitor_pad(48, length);
65 length += rtems_monitor_dump_decimal(monitor_queue->maximum_message_size);
Value stored to 'length' is never read
66
67 fprintf(stdoutstdout,"\n");
68}