diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-29 16:34:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-29 16:34:14 +0000 |
commit | 4571185111cb93007002a774d408a670e68a6f08 (patch) | |
tree | 9f253646ba8816052f2b47de2cecd75157c07301 /src | |
parent | c67f037f4f764ea8b7dc2aae4350995ab59eb493 (diff) | |
download | postgresql-4571185111cb93007002a774d408a670e68a6f08.tar.gz postgresql-4571185111cb93007002a774d408a670e68a6f08.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 90d6f301512..3f583300925 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 @@ -5,7 +5,7 @@ * Copyright (c) 2007-2008, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c,v 1.3 2008/01/01 20:31:21 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c,v 1.4 2008/08/29 16:34:14 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -210,6 +210,7 @@ get_ten(int b, int *ku) else { ten = -1; /* error */ + *ku = 0; /* keep compiler quiet */ } return ten; } |