From: Matthew Fernandez Date: Mon, 21 Jun 2021 00:44:59 +0000 (-0700) Subject: mark verbose reporting in gvParseArgs as unlikely X-Git-Tag: 2.48.0~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e5577bd6d38dd0b7f45b318e10169796e832319;p=graphviz mark verbose reporting in gvParseArgs as unlikely This indicates to the compiler it should predict the condition of this branch as false in its optimization choices. --- diff --git a/lib/common/args.c b/lib/common/args.c index 9ee5291c0..1a603fe76 100644 --- a/lib/common/args.c +++ b/lib/common/args.c @@ -17,6 +17,7 @@ * Needs to be fixed before layout engines can be plugins. */ +#include #include #include #include @@ -279,7 +280,7 @@ int gvParseArgs(GVC_t *gvc, int argc, char** argv) return (1-argc); if ((rv = dotneato_args_initialize(gvc, argc, argv))) return rv; - if (Verbose) + if (UNLIKELY(Verbose)) gvplugin_write_status(gvc); return 0; }