Ignore:
Timestamp:
10/15/14 19:20:14 (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
d4ab6611
Parents:
694debe
git-author:
Joel Sherrill <joel.sherrill@…> (10/15/14 19:20:14)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:49)
Message:

SH libcpu and libbsp: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c

    r694debe r0626dba  
    7878 *    peripheral module clock in Hz.
    7979 */
    80 uint32_t
     80static uint32_t
    8181sh4uart_get_Pph(void)
    8282{
     
    419419 *     nothing
    420420 */
    421 void
     421static void
    422422sh4uart_handle_error(sh4uart *uart)
    423423{
     
    452452{
    453453  int chn = uart->chn;
    454   int error_occured = 0;
    455454  int parity_error = 0;
    456455  int break_occured = 0;
     
    465464    if ((SCSSR1 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER |
    466465                 SH7750_SCSSR1_ORER)) != 0) {
    467       error_occured = 1;
    468466      if (SCSSR1 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER))
    469467        parity_error = 1;
     
    476474                 SH7750_SCSSR2_BRK)) != 0 ||
    477475            (SCLSR2 & SH7750_SCLSR2_ORER) != 0) {
    478       error_occured = 1;
    479476      if (SCSSR2 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER))
    480477        parity_error = 1;
Note: See TracChangeset for help on using the changeset viewer.