Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Norbert Pócs
nettle
Commits
78699da7
Commit
78699da7
authored
1 year ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Workaround for assert_maybe to not trigger clang analyzer warnings.
parent
cf8a68ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ecc-internal.h
+4
-2
4 additions, 2 deletions
ecc-internal.h
with
4 additions
and
2 deletions
ecc-internal.h
+
4
−
2
View file @
78699da7
...
@@ -88,9 +88,11 @@
...
@@ -88,9 +88,11 @@
/* For asserts that are incompatible with sc tests. Currently used
/* For asserts that are incompatible with sc tests. Currently used
only by ECC code. */
only by ECC code. */
#if WITH_EXTRA_ASSERTS
#if WITH_EXTRA_ASSERTS
#define assert_maybe(x) assert(x)
# define assert_maybe(x) assert(x)
#elif defined(__clang_analyzer__)
# define assert_maybe(x) ((void)(x))
#else
#else
#define assert_maybe(x)
#
define assert_maybe(x)
#endif
#endif
extern
const
struct
ecc_curve
_nettle_secp_192r1
;
extern
const
struct
ecc_curve
_nettle_secp_192r1
;
...
...
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