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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy