Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
70b16bc6
Commit
70b16bc6
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'ticket26890'
parents
ba1bb90a
c515dc8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/log/util_bug.c
+0
-4
0 additions, 4 deletions
src/lib/log/util_bug.c
src/lib/log/util_bug.h
+1
-2
1 addition, 2 deletions
src/lib/log/util_bug.h
with
1 addition
and
6 deletions
src/lib/log/util_bug.c
+
0
−
4
View file @
70b16bc6
...
...
@@ -20,10 +20,6 @@
#include
<string.h>
#ifdef __COVERITY__
int
bug_macro_deadcode_dummy__
=
0
;
#endif
#ifdef TOR_UNIT_TESTS
static
void
(
*
failed_assertion_cb
)(
void
)
=
NULL
;
static
int
n_bugs_to_capture
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/lib/log/util_bug.h
+
1
−
2
View file @
70b16bc6
...
...
@@ -86,13 +86,12 @@
*/
#ifdef __COVERITY__
extern
int
bug_macro_deadcode_dummy__
;
#undef BUG
// Coverity defines this in global headers; let's override it. This is a
// magic coverity-only preprocessor thing.
// We use this "deadcode_dummy__" trick to prevent coverity from
// complaining about unreachable bug cases.
#nodef BUG(x)
(
(x)
?(__coverity_panic__(),1):(0+bug_macro_deadcode_dummy__))
#nodef BUG(x) (x)
#endif
/* defined(__COVERITY__) */
#if defined(__COVERITY__) || defined(__clang_analyzer__)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment