Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4571185

Browse files
committed
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 toonly happen if Asserts are disabled, which ought to be irrelevant.Maybe that affects a decision whether to inline get_ten(), which wouldbe needed to expose the warning condition to the compiler? Anyway,the fix is clear.
1 parentc67f037 commit4571185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/utils/mb/conversion_procs/euc_jis_2004_and_shift_jis_2004/euc_jis_2004_and_shift_jis_2004.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright (c) 2007-2008, PostgreSQL Global Development Group
66
*
77
* IDENTIFICATION
8-
* $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 $
8+
* $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 $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -210,6 +210,7 @@ get_ten(int b, int *ku)
210210
else
211211
{
212212
ten=-1;/* error */
213+
*ku=0;/* keep compiler quiet */
213214
}
214215
returnten;
215216
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp