Changeset 3d2db56 in rtems-tools


Ignore:
Timestamp:
Nov 28, 2018, 6:41:33 PM (5 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
09f4dbe
Parents:
95abe76
git-author:
Chris Johns <chrisj@…> (11/28/18 18:41:33)
git-committer:
Chris Johns <chrisj@…> (11/28/18 18:45:21)
Message:

Fix warnings on Windows.

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-addr2line.cpp

    r95abe76 r3d2db56  
    288288    ec = 10;
    289289  }
    290   catch (std::exception e)
     290  catch (std::exception& e)
    291291  {
    292292    rld::output_std_exception (e, std::cerr);
  • linkers/rtems-exeinfo.cpp

    r95abe76 r3d2db56  
    983983    ec = 10;
    984984  }
    985   catch (std::exception e)
     985  catch (std::exception& e)
    986986  {
    987987    int   status;
  • linkers/rtems-ld.cpp

    r95abe76 r3d2db56  
    555555    ec = 10;
    556556  }
    557   catch (std::exception e)
     557  catch (std::exception& e)
    558558  {
    559559    int   status;
  • linkers/rtems-ra.cpp

    r95abe76 r3d2db56  
    594594    ec = 10;
    595595  }
    596   catch (std::exception e)
     596  catch (std::exception& e)
    597597  {
    598598    int   status;
  • linkers/rtems-rapper.cpp

    r95abe76 r3d2db56  
    12881288    ec = 10;
    12891289  }
    1290   catch (std::exception e)
     1290  catch (std::exception& e)
    12911291  {
    12921292    int   status;
  • linkers/rtems-syms.cpp

    r95abe76 r3d2db56  
    531531    ec = 10;
    532532  }
    533   catch (std::exception e)
     533  catch (std::exception& e)
    534534  {
    535535    int   status;
  • linkers/rtems-tld.cpp

    r95abe76 r3d2db56  
    18981898    ec = 10;
    18991899  }
    1900   catch (std::exception e)
     1900  catch (std::exception& e)
    19011901  {
    19021902    int   status;
  • misc/bin2c/rtems-bin2c.c

    r95abe76 r3d2db56  
    5858  char buf[PATH_MAX+1], *p;
    5959  char obasename[PATH_MAX+1];
    60   char ocname[PATH_MAX+1];
    61   char ohname[PATH_MAX+1];
     60  char ocname[PATH_MAX+5];
     61  char ohname[PATH_MAX+5];
    6262  size_t len;
    6363
  • rtemstoolkit/ConvertUTF.c

    r95abe76 r3d2db56  
    11/*
    22 * Copyright 2001-2004 Unicode, Inc.
    3  * 
     3 *
    44 * Disclaimer
    5  * 
     5 *
    66 * This source code is provided as is by Unicode, Inc. No claims are
    77 * made as to fitness for any particular purpose. No warranties of any
     
    1111 * sole remedy for any claim will be exchange of defective media
    1212 * within 90 days of receipt.
    13  * 
     13 *
    1414 * Limitations on Rights to Redistribute This Code
    15  * 
     15 *
    1616 * Unicode, Inc. hereby grants the right to freely use the information
    1717 * supplied in this file in the creation of products supporting the
     
    6060
    6161ConversionResult ConvertUTF32toUTF16 (
    62         const UTF32** sourceStart, const UTF32* sourceEnd, 
     62        const UTF32** sourceStart, const UTF32* sourceEnd,
    6363        UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
    6464    ConversionResult result = conversionOK;
     
    109109
    110110ConversionResult ConvertUTF16toUTF32 (
    111         const UTF16** sourceStart, const UTF16* sourceEnd, 
     111        const UTF16** sourceStart, const UTF16* sourceEnd,
    112112        UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
    113113    ConversionResult result = conversionOK;
     
    188188 * in a UTF-8 sequence.
    189189 */
    190 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL, 
     190static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
    191191                     0x03C82080UL, 0xFA082080UL, 0x82082080UL };
    192192
     
    213213
    214214ConversionResult ConvertUTF16toUTF8 (
    215         const UTF16** sourceStart, const UTF16* sourceEnd, 
     215        const UTF16** sourceStart, const UTF16* sourceEnd,
    216216        UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
    217217    ConversionResult result = conversionOK;
     
    222222        unsigned short bytesToWrite = 0;
    223223        const UTF32 byteMask = 0xBF;
    224         const UTF32 byteMark = 0x80; 
     224        const UTF32 byteMark = 0x80;
    225225        const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
    226226        ch = *source++;
     
    311311            default:   if (a < 0x80) return false; break;
    312312        }
    313 
     313    /* FALLTHRU */
    314314    case 1: if (*source >= 0x80 && *source < 0xC2) return false; /* fall-thru */
    315315    }
     
    335335
    336336ConversionResult ConvertUTF8toUTF16 (
    337         const UTF8** sourceStart, const UTF8* sourceEnd, 
     337        const UTF8** sourceStart, const UTF8* sourceEnd,
    338338        UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
    339339    ConversionResult result = conversionOK;
     
    408408
    409409ConversionResult ConvertUTF32toUTF8 (
    410         const UTF32** sourceStart, const UTF32* sourceEnd, 
     410        const UTF32** sourceStart, const UTF32* sourceEnd,
    411411        UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
    412412    ConversionResult result = conversionOK;
     
    417417        unsigned short bytesToWrite = 0;
    418418        const UTF32 byteMask = 0xBF;
    419         const UTF32 byteMark = 0x80; 
     419        const UTF32 byteMark = 0x80;
    420420        ch = *source++;
    421421        if (flags == strictConversion ) {
     
    439439                                            result = sourceIllegal;
    440440        }
    441        
     441
    442442        target += bytesToWrite;
    443443        if (target > targetEnd) {
     
    462462
    463463ConversionResult ConvertUTF8toUTF32 (
    464         const UTF8** sourceStart, const UTF8* sourceEnd, 
     464        const UTF8** sourceStart, const UTF8* sourceEnd,
    465465        UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
    466466    ConversionResult result = conversionOK;
  • rtemstoolkit/rld-dwarf.cpp

    r95abe76 r3d2db56  
    19041904                int               depth)
    19051905    {
    1906       dwarf_unsigned cu_offset = 0;
    1907 
    19081906      while (true)
    19091907      {
     
    19331931          die = sibling;
    19341932        }
    1935 
    1936         cu_offset = cu_next_offset;
    19371933      }
    19381934    }
Note: See TracChangeset for help on using the changeset viewer.