Changeset 9ca6799 in rtems


Ignore:
Timestamp:
Oct 12, 2014, 3:07:07 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
ee0ea5bf
Parents:
59888da
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 15:07:07)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:27)
Message:

powerpc/shared/console: Fix warnings

Location:
c/src/lib/libbsp/powerpc/shared/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/console/console.c

    r59888da r9ca6799  
    149149} /* console_initialize */
    150150
     151#if !defined(USE_POLLED_IO)
    151152static int console_first_open(int major, int minor, void *arg)
    152153{
     
    175176  return 0;
    176177}
    177 
     178#endif
     179
     180#if !defined(USE_POLLED_IO)
    178181static int console_last_close(int major, int minor, void *arg)
    179182{
     
    181184  return 0;
    182185}
     186#endif
    183187
    184188/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/powerpc/shared/console/uart.c

    r59888da r9ca6799  
    8383
    8484
    85 #ifdef UARTDEBUG
    86     static void
     85static void
    8786uartError(int uart, void *termiosPrivate)
    8887{
     
    9392  dummy = uread(uart, RBR);
    9493
     94#ifdef UARTDEBUG
    9595  if (uartStatus & OE)
    9696    printk("********* Over run Error **********\n");
     
    101101  if (uartStatus & BI) {
    102102    printk("********* BREAK INTERRUPT *********\n");
    103         if ((h=uart_data[uart].breakCallback.handler))
    104                 h(uart,
    105                   (dummy<<8)|uartStatus,
    106                   termiosPrivate,
    107                   uart_data[uart].breakCallback.private);
    108 
     103#endif
     104   if ((h=uart_data[uart].breakCallback.handler)) {
     105     h(uart,
     106       (dummy<<8)|uartStatus,
     107       termiosPrivate,
     108       uart_data[uart].breakCallback.private);
    109109  }
     110#ifdef UARTDEBUG
    110111  if (uartStatus & ERFIFO)
    111112    printk("********* Error receive Fifo **********\n");
    112 
    113 }
    114 #else
    115 inline void uartError(int uart, void *termiosPrivate)
    116 {
    117   unsigned char uartStatus,dummy;
    118   BSP_UartBreakCbProc           h;
    119 
    120   uartStatus = uread(uart, LSR);
    121   dummy          = uread(uart, RBR);
    122   if ((uartStatus & BI) && (h=uart_data[uart].breakCallback.handler))
    123                 h(uart,
    124                   (dummy<<8)|uartStatus,
    125                   termiosPrivate,
    126                   uart_data[uart].breakCallback.private);
    127 }
    128113#endif
     114}
    129115
    130116/*
     
    198184  tmp = uread(uart, RBR);
    199185  tmp = uread(uart, MSR);
     186  (void) tmp; /* avoid set but not used warning */
    200187
    201188  /* Remember state */
Note: See TracChangeset for help on using the changeset viewer.