hrev46550 adds 1 changeset to branch 'master' old head: 3459199e5dd0e7fbf1c93fd1aa270ecb5d490fa1 new head: 70b978fd9fc574e72a9f91f58beb36c521ec57c4 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=70b978f+%5E3459199 ---------------------------------------------------------------------------- 70b978f: Fix the build with GCC4.8 Signed-off-by: Jérôme Duval <jerome.duval@xxxxxxxxx> [ Murai Takashi <tmurai01@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev46550 Commit: 70b978fd9fc574e72a9f91f58beb36c521ec57c4 URL: http://cgit.haiku-os.org/haiku/commit/?id=70b978f Author: Murai Takashi <tmurai01@xxxxxxxxx> Date: Thu Dec 5 12:41:50 2013 UTC Committer: Jérôme Duval <jerome.duval@xxxxxxxxx> Commit-Date: Tue Dec 17 17:01:44 2013 UTC ---------------------------------------------------------------------------- 8 files changed, 18 insertions(+), 18 deletions(-) headers/libs/agg/agg_conv_curve.h | 8 ++++---- headers/libs/agg/agg_rasterizer_scanline_aa.h | 4 ++-- .../kernel/file_systems/packagefs/util/TwoKeyAVLTree.h | 2 +- src/apps/cortex/addons/Flanger/FlangerNode.cpp | 4 ++-- src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp | 8 ++++---- src/apps/installer/CopyEngine.cpp | 2 +- src/apps/mediaplayer/InfoWin.cpp | 4 ++-- .../app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h | 4 ++-- ---------------------------------------------------------------------------- diff --git a/headers/libs/agg/agg_conv_curve.h b/headers/libs/agg/agg_conv_curve.h index 8c5d397..f682a59 100644 --- a/headers/libs/agg/agg_conv_curve.h +++ b/headers/libs/agg/agg_conv_curve.h @@ -154,10 +154,10 @@ namespace agg return path_cmd_line_to; } - double ct2_x; - double ct2_y; - double end_x; - double end_y; + double ct2_x = 0; + double ct2_y = 0; + double end_x = 0; + double end_y = 0; unsigned cmd = m_source->vertex(x, y); switch(cmd) 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/headers/libs/agg/agg_rasterizer_scanline_aa.h +++ b/headers/libs/agg/agg_rasterizer_scanline_aa.h @@ -187,8 +187,8 @@ namespace agg template<class VertexSource> void add_path(VertexSource& vs, unsigned path_id=0) { - double x; - double y; + double x = 0; + double y = 0; unsigned cmd; vs.rewind(path_id); 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/src/add-ons/kernel/file_systems/packagefs/util/TwoKeyAVLTree.h +++ b/src/add-ons/kernel/file_systems/packagefs/util/TwoKeyAVLTree.h @@ -457,7 +457,7 @@ TWO_KEY_AVL_TREE_CLASS_NAME::FindFirstClosest(const PrimaryKey& key, bool less, { const NodeStrategy& strategy = fTreeMap.GetNodeStrategy(); - Node* parent; + Node* parent = NULL; Node* node = _FindFirst(key, &parent); if (node == NULL) { // not found -- try to get the closest node diff --git a/src/apps/cortex/addons/Flanger/FlangerNode.cpp b/src/apps/cortex/addons/Flanger/FlangerNode.cpp index 157ee1a..4a64417 100644 --- a/src/apps/cortex/addons/Flanger/FlangerNode.cpp +++ b/src/apps/cortex/addons/Flanger/FlangerNode.cpp @@ -1453,7 +1453,7 @@ void FlangerNode::filterBuffer( for(uint32 inPos = 0; inPos < samples; ++inPos) { // read from input buffer - _frame inFrame; + _frame inFrame = {}; inFrame.channel[0] = ((float*)input.data())[inPos]; if(stereo) inFrame.channel[1] = ((float*)input.data())[inPos + 1]; @@ -1468,7 +1468,7 @@ void FlangerNode::filterBuffer( // read low-index (possibly only) frame - _frame delayedFrame; + _frame delayedFrame = {}; int32 readFrameLo = (int32)floor(fReadFrame); uint32 pos = readFrameLo * channels; 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/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp +++ b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp @@ -623,7 +623,7 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape, return B_NO_MEMORY; source.rewind(index); - double x1, y1; + double x1 = 0, y1 = 0; unsigned cmd = source.vertex(&x1, &y1); bool keepGoing = true; int32 subPath = 0; @@ -688,7 +688,7 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape, break; case agg::path_cmd_curve3: { - double x2, y2; + double x2 = 0, y2 = 0; cmd = source.vertex(&x2, &y2); //printf("curve3 (%.2f, %.2f)\n", x1, y1); //printf(" (%.2f, %.2f)\n", x2, y2); @@ -715,8 +715,8 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape, } case agg::path_cmd_curve4: { - double x2, y2; - double x3, y3; + double x2 = 0, y2 = 0; + double x3 = 0, y3 = 0; cmd = source.vertex(&x2, &y2); cmd = source.vertex(&x3, &y3); diff --git a/src/apps/installer/CopyEngine.cpp b/src/apps/installer/CopyEngine.cpp index 82b63bc..f62edfb 100644 --- a/src/apps/installer/CopyEngine.cpp +++ b/src/apps/installer/CopyEngine.cpp @@ -541,7 +541,7 @@ CopyEngine::_WriteThread() bigtime_t now = system_time(); - Buffer* buffer; + Buffer* buffer = NULL; status_t ret = fBufferQueue.Pop(&buffer, bufferWaitTimeout); if (ret == B_TIMED_OUT) { // no buffer, timeout diff --git a/src/apps/mediaplayer/InfoWin.cpp b/src/apps/mediaplayer/InfoWin.cpp index b9d6c30..62919de 100644 --- a/src/apps/mediaplayer/InfoWin.cpp +++ b/src/apps/mediaplayer/InfoWin.cpp @@ -313,7 +313,7 @@ printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which); fLabelsView->Insert(label << "\n\n\n"); BString s; media_format format; - media_raw_video_format videoFormat; + media_raw_video_format videoFormat = {}; err = fController->GetEncodedVideoFormat(&format); if (err < B_OK) { s << "(" << strerror(err) << ")\n"; @@ -350,7 +350,7 @@ printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which); fLabelsView->Insert(label << "\n\n\n"); BString s; media_format format; - media_raw_audio_format audioFormat; + media_raw_audio_format audioFormat = {}; err = fController->GetEncodedAudioFormat(&format); //string_for_format(format, buf, sizeof(buf)); //printf("%s\n", buf); 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/src/servers/app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h +++ b/src/servers/app/drawing/Painter/agg_rasterizer_scanline_aa_subpix.h @@ -107,8 +107,8 @@ namespace agg template<class VertexSource> void add_path(VertexSource& vs, unsigned path_id=0) { - double x; - double y; + double x = 0; + double y = 0; unsigned cmd; vs.rewind(path_id);