summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorBenjamin Robin <dev@benjarobin.fr>2020-05-06 20:29:31 +0200
committerBenjamin Robin <dev@benjarobin.fr>2020-05-06 23:03:25 +0200
commit0a0e594a26efe69afc3b05529dc0145a8d674e12 (patch)
tree02429f9312f309cf9fe2826b29ff469cfb1c9ddc /src/journal
parent259f0dfbec0048aca8c409ec9e79e814b89c0632 (diff)
downloadsystemd-0a0e594a26efe69afc3b05529dc0145a8d674e12.tar.gz
tree-wide: Mark as _unused_ variables that are only used in assert()
Allow to build without any warning with NDEBUG defined
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/fsprg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/fsprg.c b/src/journal/fsprg.c
index 1dda2149d4..0ef3df89df 100644
--- a/src/journal/fsprg.c
+++ b/src/journal/fsprg.c
@@ -60,7 +60,7 @@ static void mpi_export(void *buf, size_t buflen, const gcry_mpi_t x) {
static gcry_mpi_t mpi_import(const void *buf, size_t buflen) {
gcry_mpi_t h;
- unsigned len;
+ _unused_ unsigned len;
assert_se(gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL) == 0);
len = (gcry_mpi_get_nbits(h) + 7) / 8;