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

Commitb1b8682

Browse files
committed
Suppress more compiler warnings in new pgstats code.
Per buildfarm, we didn't get rid of quite all of the-Wtautological-constant-out-of-range-compare warningsin pgstat_io.c.Discussion:https://postgr.es/m/20520.1677435600@sss.pgh.pa.us
1 parent019f862 commitb1b8682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/utils/activity/pgstat_io.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ pgstat_bktype_io_stats_valid(PgStat_BktypeIO *backend_io,
6565
void
6666
pgstat_count_io_op(IOObjectio_object,IOContextio_context,IOOpio_op)
6767
{
68-
Assert(io_object<IOOBJECT_NUM_TYPES);
69-
Assert(io_context<IOCONTEXT_NUM_TYPES);
70-
Assert(io_op<IOOP_NUM_TYPES);
68+
Assert((unsignedint)io_object<IOOBJECT_NUM_TYPES);
69+
Assert((unsignedint)io_context<IOCONTEXT_NUM_TYPES);
70+
Assert((unsignedint)io_op<IOOP_NUM_TYPES);
7171
Assert(pgstat_tracks_io_op(MyBackendType,io_object,io_context,io_op));
7272

7373
PendingIOStats.data[io_object][io_context][io_op]++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp