firtst release
リビジョン | abc4ffaa3c1ee18ada2443f99ca48e43540af7b2 (tree) |
---|---|
日時 | 2013-12-09 11:52:28 |
作者 | Shigeru HANADA <shigeru.hanada@gmai...> |
コミッター | Shigeru HANADA |
Silence compiler warning about uninitialized variable.
@@ -27,7 +27,8 @@ | ||
27 | 27 | static double |
28 | 28 | adjust_rows(double rows, RowsHint *hint) |
29 | 29 | { |
30 | - double result; | |
30 | + double result = 0.0; /* keep compiler quiet */ | |
31 | + | |
31 | 32 | if (hint->value_type == RVT_ABSOLUTE) |
32 | 33 | result = hint->rows; |
33 | 34 | else if (hint->value_type == RVT_ADD) |
@@ -42,6 +43,7 @@ adjust_rows(double rows, RowsHint *hint) | ||
42 | 43 | hint->base.state = HINT_STATE_USED; |
43 | 44 | result = clamp_row_est(result); |
44 | 45 | elog(DEBUG1, "adjusted rows %d to %d", (int) rows, (int) result); |
46 | + | |
45 | 47 | return result; |
46 | 48 | } |
47 | 49 |