From c22a34cf4f7250714e4183f0ad64ae6bc86e3e32 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 29 Aug 2008 16:34:14 +0000 Subject: [PATCH] Suppress gcc warning about possibly-uninitialized variable. It's not clear to me why I'd not seen this message before --- on F-9 it seems to only happen if Asserts are disabled, which ought to be irrelevant. Maybe that affects a decision whether to inline get_ten(), which would be needed to expose the warning condition to the compiler? Anyway, the fix is clear. --- .../euc_jis_2004_and_shift_jis_2004.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c b/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c index 3a0a71b562..93483c0c84 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c +++ b/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c @@ -210,6 +210,7 @@ get_ten(int b, int *ku) else { ten = -1; /* error */ + *ku = 0; /* keep compiler quiet */ } return ten; } -- 2.39.5