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

Commitbaab923

Browse files
author
Marina Polyakova
committed
PGPRO-7102: fix warning in the function handle_response
For a build without assertions we get the following warning:src/resolver.c: In function ‘handle_response’:src/resolver.c:616:37: error: ‘gid’ may be used uninitialized in this function[-Werror=maybe-uninitialized]
1 parent605aa9e commitbaab923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/resolver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ handle_response(MtmConfig *mtm_cfg, MtmMessage *raw_msg)
450450
elseif (raw_msg->tag==T_Mtm2AResponse)
451451
gid= ((Mtm2AResponse*)raw_msg)->gid;
452452
else
453-
Assert(false);
453+
mtm_log(ERROR,"Illegal message tag %d",raw_msg->tag);
454454

455455
mtm_log(ResolverTx,"handle_response: got '%s'",MtmMesageToString(raw_msg));
456456

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp