Ticket #10272: 0001-Fix-build-with-gcc48-except-apps-Installer.patch

File 0001-Fix-build-with-gcc48-except-apps-Installer.patch, 5.7 KB (added by mt, 10 years ago)
  • headers/libs/agg/agg_conv_curve.h

    From 93cc33d9264d7cffeb0c0eb704efd45c8ba70054 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 Dec 2013 21:41:50 +0900
    Subject: [PATCH] Fix build with gcc48 (except apps/Installer)
    
    ---
     headers/libs/agg/agg_conv_curve.h                  |    8 ++++----
     headers/libs/agg/agg_rasterizer_scanline_aa.h      |    4 ++--
     .../file_systems/packagefs/util/TwoKeyAVLTree.h    |    2 +-
     src/apps/cortex/addons/Flanger/FlangerNode.cpp     |    4 ++--
     .../import_export/svg/DocumentBuilder.cpp          |    8 ++++----
     src/apps/mediaplayer/InfoWin.cpp                   |    4 ++--
     .../Painter/agg_rasterizer_scanline_aa_subpix.h    |    4 ++--
     7 files changed, 17 insertions(+), 17 deletions(-)
    
    diff --git a/headers/libs/agg/agg_conv_curve.h b/headers/libs/agg/agg_conv_curve.h
    index 8c5d397..f682a59 100644
    a b namespace agg  
    154154            return path_cmd_line_to;
    155155        }
    156156
    157         double ct2_x;
    158         double ct2_y;
    159         double end_x;
    160         double end_y;
     157        double ct2_x = 0;
     158        double ct2_y = 0;
     159        double end_x = 0;
     160        double end_y = 0;
    161161
    162162        unsigned cmd = m_source->vertex(x, y);
    163163        switch(cmd)
  • headers/libs/agg/agg_rasterizer_scanline_aa.h

    diff --git a/headers/libs/agg/agg_rasterizer_scanline_aa.h b/headers/libs/agg/agg_rasterizer_scanline_aa.h
    index 2b69db6..39286d7 100644
    a b namespace agg  
    187187        template<class VertexSource>
    188188        void add_path(VertexSource& vs, unsigned path_id=0)
    189189        {
    190             double x;
    191             double y;
     190            double x = 0;
     191            double y = 0;
    192192
    193193            unsigned cmd;
    194194            vs.rewind(path_id);
  • src/add-ons/kernel/file_systems/packagefs/util/TwoKeyAVLTree.h

    diff --git a/src/add-ons/kernel/file_systems/packagefs/util/TwoKeyAVLTree.h b/src/add-ons/kernel/file_systems/packagefs/util/TwoKeyAVLTree.h
    index ee9d046..4579fdc 100644
    a b TWO_KEY_AVL_TREE_CLASS_NAME::FindFirstClosest(const PrimaryKey& key, bool less,  
    457457{
    458458    const NodeStrategy& strategy = fTreeMap.GetNodeStrategy();
    459459
    460     Node* parent;
     460    Node* parent = NULL;
    461461    Node* node = _FindFirst(key, &parent);
    462462    if (node == NULL) {
    463463        // not found -- try to get the closest node
  • src/apps/cortex/addons/Flanger/FlangerNode.cpp

    diff --git a/src/apps/cortex/addons/Flanger/FlangerNode.cpp b/src/apps/cortex/addons/Flanger/FlangerNode.cpp
    index 157ee1a..4a64417 100644
    a b void FlangerNode::filterBuffer(  
    14531453    for(uint32 inPos = 0; inPos < samples; ++inPos) {
    14541454
    14551455        // read from input buffer
    1456         _frame inFrame;
     1456        _frame inFrame = {};
    14571457        inFrame.channel[0] = ((float*)input.data())[inPos];
    14581458        if(stereo)
    14591459            inFrame.channel[1] = ((float*)input.data())[inPos + 1];
    void FlangerNode::filterBuffer(  
    14681468
    14691469
    14701470        // read low-index (possibly only) frame
    1471         _frame delayedFrame;
     1471        _frame delayedFrame = {};
    14721472
    14731473        int32 readFrameLo = (int32)floor(fReadFrame);
    14741474        uint32 pos = readFrameLo * channels;
  • src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp

    diff --git a/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp
    index d8f8bf5..f0ca0a5 100644
    a b AddPathsFromVertexSource(Icon* icon, Shape* shape,  
    623623        return B_NO_MEMORY;
    624624
    625625    source.rewind(index);
    626     double x1, y1;
     626    double x1 = 0, y1 = 0;
    627627    unsigned cmd = source.vertex(&x1, &y1);
    628628    bool keepGoing = true;
    629629    int32 subPath = 0;
    AddPathsFromVertexSource(Icon* icon, Shape* shape,  
    688688                break;
    689689
    690690            case agg::path_cmd_curve3: {
    691                 double x2, y2;
     691                double x2 = 0, y2 = 0;
    692692                cmd = source.vertex(&x2, &y2);
    693693//printf("curve3 (%.2f, %.2f)\n", x1, y1);
    694694//printf("     (%.2f, %.2f)\n", x2, y2);
    AddPathsFromVertexSource(Icon* icon, Shape* shape,  
    715715            }
    716716
    717717            case agg::path_cmd_curve4: {
    718                 double x2, y2;
    719                 double x3, y3;
     718                double x2 = 0, y2 = 0;
     719                double x3 = 0, y3 = 0;
    720720                cmd = source.vertex(&x2, &y2);
    721721                cmd = source.vertex(&x3, &y3);
    722722
  • src/apps/mediaplayer/InfoWin.cpp

    diff --git a/src/apps/mediaplayer/InfoWin.cpp b/src/apps/mediaplayer/InfoWin.cpp
    index b9d6c30..62919de 100644
    a b printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which);  
    313313        fLabelsView->Insert(label << "\n\n\n");
    314314        BString s;
    315315        media_format format;
    316         media_raw_video_format videoFormat;
     316        media_raw_video_format videoFormat = {};
    317317        err = fController->GetEncodedVideoFormat(&format);
    318318        if (err < B_OK) {
    319319            s << "(" << strerror(err) << ")\n";
    printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which);  
    350350        fLabelsView->Insert(label << "\n\n\n");
    351351        BString s;
    352352        media_format format;
    353         media_raw_audio_format audioFormat;
     353        media_raw_audio_format audioFormat = {};
    354354        err = fController->GetEncodedAudioFormat(&format);
    355355        //string_for_format(format, buf, sizeof(buf));
    356356        //printf("%s\n", buf);
  • src/servers/app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h

    diff --git a/src/servers/app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h b/src/servers/app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h
    index 806f8c9..144282b 100644
    a b namespace agg  
    107107        template<class VertexSource>
    108108        void add_path(VertexSource& vs, unsigned path_id=0)
    109109        {
    110             double x;
    111             double y;
     110            double x = 0;
     111            double y = 0;
    112112
    113113            unsigned cmd;
    114114            vs.rewind(path_id);