Content-Length: 256515 | pFad | http://github.com/postgrespro/mmts/commit/baab9238f784d428481ecfa1294e3f9a3910b2d2

63 PGPRO-7102: fix warning in the function handle_response · postgrespro/mmts@baab923 · GitHub
Skip to content

Commit baab923

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 parent 605aa9e commit baab923

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
else if (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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/mmts/commit/baab9238f784d428481ecfa1294e3f9a3910b2d2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy