Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRUyO-0002lq-0n for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:10:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRUyK-0002kN-V5 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:10:05 -0500 Received: from [199.232.76.173] (port=54832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRUyK-0002js-E1 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:10:04 -0500 Received: from mx20.gnu.org ([199.232.41.8]:51535) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRUyH-0003Tj-CA for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:10:01 -0500 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRUw3-0003YA-7z for qemu-devel@nongnu.org; Mon, 26 Jan 2009 12:07:43 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LRUw3-0007vz-1H for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:07:43 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LRUw2-0007vm-Nb for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:07:42 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Mon, 26 Jan 2009 17:07:42 +0000 Subject: [Qemu-devel] [6446] Move definition of rgb_to_pixel_dup_table (Nathan Froyd) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6446 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6446 Author: aliguori Date: 2009-01-26 17:07:42 +0000 (Mon, 26 Jan 2009) Log Message: ----------- Move definition of rgb_to_pixel_dup_table (Nathan Froyd) This fixes the warning: /scratch/froydnj/qemu.git/hw/vga.c:1515: warning: redundant redeclaration of 'rgb_to_pixel_dup_table' /scratch/froydnj/qemu.git/hw/vga.c:1248: warning: previous declaration of 'rgb_to_pixel_dup_table' was here Signed-off-by: Nathan Froyd Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/vga.c Modified: trunk/hw/vga.c =================================================================== --- trunk/hw/vga.c 2009-01-26 15:57:52 UTC (rev 6445) +++ trunk/hw/vga.c 2009-01-26 17:07:42 UTC (rev 6446) @@ -1245,7 +1245,15 @@ typedef unsigned int rgb_to_pixel_dup_func(unsigned int r, unsigned int g, unsigned b); -static rgb_to_pixel_dup_func *rgb_to_pixel_dup_table[NB_DEPTHS]; +static rgb_to_pixel_dup_func *rgb_to_pixel_dup_table[NB_DEPTHS] = { + rgb_to_pixel8_dup, + rgb_to_pixel15_dup, + rgb_to_pixel16_dup, + rgb_to_pixel32_dup, + rgb_to_pixel32bgr_dup, + rgb_to_pixel15bgr_dup, + rgb_to_pixel16bgr_dup, +}; /* * Text mode update @@ -1512,16 +1520,6 @@ vga_draw_line32_16bgr, }; -static rgb_to_pixel_dup_func *rgb_to_pixel_dup_table[NB_DEPTHS] = { - rgb_to_pixel8_dup, - rgb_to_pixel15_dup, - rgb_to_pixel16_dup, - rgb_to_pixel32_dup, - rgb_to_pixel32bgr_dup, - rgb_to_pixel15bgr_dup, - rgb_to_pixel16bgr_dup, -}; - static int vga_get_bpp(VGAState *s) { int ret;