summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-15 10:30:03 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-15 10:30:03 -0500
commit77246dc0d8b90e99bb411475da1911919799dae8 (patch)
tree455dc9e6bb6d83940c1cd8bc5137cbfec404c8c3 /src/app
parent5e27caa60c4ccf257c0dca64883cdf672d8d8ce4 (diff)
downloadtor-77246dc0d8b90e99bb411475da1911919799dae8.tar.gz
tor-77246dc0d8b90e99bb411475da1911919799dae8.zip
Tell static analyzer that having ntservice functions not exist is ok
When we made these functions exist unconditionally (as macros on non-windows platforms), we started to get a dead-code warning on Coverity. We now use a macro to tell coverity not to worry about this particular dead-code instance.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 36f85c6a40..b533406eaa 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -1240,7 +1240,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
int done = 0;
result = nt_service_parse_options(argc, argv, &done);
- if (done)
+ if (POSSIBLE(done))
goto done;
pubsub_install();