From 4f46a90104527e724d574b9cc583483137607da1 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 23 Mar 2011 00:24:39 +0000 Subject: [PATCH] Minor change to avoid a compiler warning in gcc. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404184 --- dlib/gui_core/gui_core_kernel_2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlib/gui_core/gui_core_kernel_2.cpp b/dlib/gui_core/gui_core_kernel_2.cpp index 1a2936693..c098d38dc 100644 --- a/dlib/gui_core/gui_core_kernel_2.cpp +++ b/dlib/gui_core/gui_core_kernel_2.cpp @@ -1093,9 +1093,9 @@ namespace dlib if (depth != 24) { // convert this image into an 8 bit image - unsigned int red_bits; - unsigned int green_bits; - unsigned int blue_bits; + unsigned int red_bits = 0; + unsigned int green_bits = 0; + unsigned int blue_bits = 0; if (depth != 16) { unsigned int bits = depth/3;