summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authoryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-19 01:19:55 +0000
committeryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-19 01:19:55 +0000
commit22c10591b5c2d3ade6824b6a4e58d7e97e06a8c5 (patch)
tree840ba3251455fcf755641424bdb467bed295ce87 /courgette
parentf000314956ccbc7b18b60f4d1f9f64342959404c (diff)
downloadchromium_src-22c10591b5c2d3ade6824b6a4e58d7e97e06a8c5.zip
chromium_src-22c10591b5c2d3ade6824b6a4e58d7e97e06a8c5.tar.gz
chromium_src-22c10591b5c2d3ade6824b6a4e58d7e97e06a8c5.tar.bz2
Fixing compilation error on Linux with GCC 4.3.3. My environment is Ubuntu 9.04 (x86, 32bit).
% hammer --mode=Release ... Compiling /home/yusukes/chromium2/src/sconsbuild/Release/obj/courgette/adjustment_method_2.o Linking /home/yusukes/chromium2/src/sconsbuild/Release/startup_tests cc1plus: warnings being treated as errors /home/yusukes/chromium2/src/courgette/adjustment_method_2.cc: In constructor 'courgette::adjustment_method_2::ShinglePattern::Index::Index(const courgette::adjustment_method_2::Shingle*)': /home/yusukes/chromium2/src/courgette/adjustment_method_2.cc:676: error: 'kind' may be used uninitialized in this function /home/yusukes/chromium2/src/courgette/adjustment_method_2.cc: In constructor 'courgette::adjustment_method_2::ShinglePattern::Index::Index(const courgette::adjustment_method_2::Shingle*)': /home/yusukes/chromium2/src/courgette/adjustment_method_2.cc:676: error: 'kind' may be used uninitialized in this function scons: *** [/home/yusukes/chromium2/src/sconsbuild/Release/obj/courgette/adjustment_method_2.o] Error 1 scons: building terminated because of errors BUG=none TEST=none Review URL: http://codereview.chromium.org/159054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette')
-rw-r--r--courgette/adjustment_method_2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/adjustment_method_2.cc b/courgette/adjustment_method_2.cc
index 976dfc9..f995748 100644
--- a/courgette/adjustment_method_2.cc
+++ b/courgette/adjustment_method_2.cc
@@ -673,7 +673,7 @@ ShinglePattern::Index::Index(const Shingle* instance) {
for (size_t i = 0; i < Shingle::kWidth; ++i) {
LabelInfo* info = instance->at(i);
- uint32 kind;
+ uint32 kind = 0;
int code = -1;
size_t j = 0;
for ( ; j < i; ++j) {