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

Commit8c6d30f

Browse files
committed
Fix compiler warnings on MSYS2
The PS_USE_NONE case in ps_status.c left a couple of unused variablesexposed.Discussion:https://www.postgresql.org/message-id/flat/6b467edc-4018-521f-ab18-171f098557ca%402ndquadrant.com
1 parent6136e94 commit8c6d30f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/utils/misc/ps_status.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ boolupdate_process_title = true;
8989
#endif
9090

9191

92+
#ifndefPS_USE_NONE
93+
9294
#ifndefPS_USE_CLOBBER_ARGV
9395
/* all but one option need a buffer to write their ps line in */
9496
#definePS_BUFFER_SIZE 256
@@ -104,6 +106,8 @@ static size_t ps_buffer_cur_len;/* nominal strlen(ps_buffer) */
104106

105107
staticsize_tps_buffer_fixed_size;/* size of the constant prefix */
106108

109+
#endif/* not PS_USE_NONE */
110+
107111
/* save the original argv[] location here */
108112
staticintsave_argc;
109113
staticchar**save_argv;
@@ -420,7 +424,11 @@ get_ps_display(int *displen)
420424
}
421425
#endif
422426

427+
#ifndefPS_USE_NONE
423428
*displen= (int) (ps_buffer_cur_len-ps_buffer_fixed_size);
424429

425430
returnps_buffer+ps_buffer_fixed_size;
431+
#else
432+
return"";
433+
#endif
426434
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp