Skip to content

Commit 79dee09

Browse files
committed
Avoid clang warnings for unused parameters
1 parent 6a33995 commit 79dee09

File tree

9 files changed

+25
-3
lines changed

9 files changed

+25
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ configure_package_config_file("${CONFIG_TEMPLATE_FILE}" "${CONFIG_FILE}"
6060

6161
install(FILES "${CONFIG_FILE}" DESTINATION "${INSTALL_CONFIG_DIR}")
6262

63-
write_basic_package_version_file("${PROJECT_NAME}-config-version.cmake" VERSION 0.4.3 COMPATIBILITY AnyNewerVersion)
63+
write_basic_package_version_file("${PROJECT_NAME}-config-version.cmake" VERSION 0.4.4 COMPATIBILITY AnyNewerVersion)
6464
install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake" DESTINATION "${INSTALL_CONFIG_DIR}")
6565

6666
export(EXPORT "${TARGETS_EXPORT_NAME}" FILE "${TARGETS_EXPORT_FILE}" NAMESPACE "${PROJECT_NAME}::")

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
55
const with_benchmark: bool = b.option(bool, "with-benchmark", "Compile benchmark") orelse false;
66
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseFast });
7-
const version = std.SemanticVersion.parse("0.4.3") catch unreachable;
7+
const version = std.SemanticVersion.parse("0.4.4") catch unreachable;
88

99
const lib = b.addLibrary(.{
1010
.name = "aegis",

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .aegis,
3-
.version = "0.4.3",
3+
.version = "0.4.4",
44
.minimum_zig_version = "0.15.1",
55
.paths = .{ "README.md", "LICENSE", "src", "build.zig", "build.zig.zon" },
66
.fingerprint = 0x5e23831cc5883dc1,

src/aegis128l/aegis128l_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ state_encrypt_detached_final(aegis128l_state *st_, uint8_t *c, size_t clen_max,
450450
(_aegis128l_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
451451
~(uintptr_t) (ALIGNMENT - 1));
452452

453+
(void) c;
454+
(void) clen_max;
453455
memcpy(blocks, st->blocks, sizeof blocks);
454456

455457
if (written != NULL) {
@@ -609,6 +611,8 @@ state_decrypt_detached_final(aegis128l_state *st_, uint8_t *m, size_t mlen_max,
609611
~(uintptr_t) (ALIGNMENT - 1));
610612
int ret;
611613

614+
(void) m;
615+
(void) mlen_max;
612616
memcpy(blocks, st->blocks, sizeof blocks);
613617

614618
if (written != NULL) {

src/aegis128x2/aegis128x2_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ state_encrypt_detached_final(aegis128x2_state *st_, uint8_t *c, size_t clen_max,
554554
(_aegis128x2_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
555555
~(uintptr_t) (ALIGNMENT - 1));
556556

557+
(void) c;
558+
(void) clen_max;
557559
memcpy(blocks, st->blocks, sizeof blocks);
558560

559561
if (written != NULL) {
@@ -713,6 +715,8 @@ state_decrypt_detached_final(aegis128x2_state *st_, uint8_t *m, size_t mlen_max,
713715
~(uintptr_t) (ALIGNMENT - 1));
714716
int ret;
715717

718+
(void) m;
719+
(void) mlen_max;
716720
memcpy(blocks, st->blocks, sizeof blocks);
717721

718722
if (written != NULL) {

src/aegis128x4/aegis128x4_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ state_encrypt_detached_final(aegis128x4_state *st_, uint8_t *c, size_t clen_max,
565565
(_aegis128x4_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
566566
~(uintptr_t) (ALIGNMENT - 1));
567567

568+
(void) c;
569+
(void) clen_max;
568570
memcpy(blocks, st->blocks, sizeof blocks);
569571

570572
if (written != NULL) {
@@ -721,6 +723,8 @@ state_decrypt_detached_final(aegis128x4_state *st_, uint8_t *m, size_t mlen_max,
721723
~(uintptr_t) (ALIGNMENT - 1));
722724
int ret;
723725

726+
(void) m;
727+
(void) mlen_max;
724728
memcpy(blocks, st->blocks, sizeof blocks);
725729

726730
if (written != NULL) {

src/aegis256/aegis256_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ state_encrypt_detached_final(aegis256_state *st_, uint8_t *c, size_t clen_max, s
434434
(_aegis256_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
435435
~(uintptr_t) (ALIGNMENT - 1));
436436

437+
(void) c;
438+
(void) clen_max;
437439
memcpy(blocks, st->blocks, sizeof blocks);
438440

439441
if (written != NULL) {
@@ -596,6 +598,8 @@ state_decrypt_detached_final(aegis256_state *st_, uint8_t *m, size_t mlen_max, s
596598
~(uintptr_t) (ALIGNMENT - 1));
597599
int ret;
598600

601+
(void) m;
602+
(void) mlen_max;
599603
memcpy(blocks, st->blocks, sizeof blocks);
600604

601605
if (written != NULL) {

src/aegis256x2/aegis256x2_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ state_encrypt_detached_final(aegis256x2_state *st_, uint8_t *c, size_t clen_max,
549549
(_aegis256x2_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
550550
~(uintptr_t) (ALIGNMENT - 1));
551551

552+
(void) c;
553+
(void) clen_max;
552554
memcpy(blocks, st->blocks, sizeof blocks);
553555

554556
if (written != NULL) {
@@ -713,6 +715,8 @@ state_decrypt_detached_final(aegis256x2_state *st_, uint8_t *m, size_t mlen_max,
713715
~(uintptr_t) (ALIGNMENT - 1));
714716
int ret;
715717

718+
(void) m;
719+
(void) mlen_max;
716720
memcpy(blocks, st->blocks, sizeof blocks);
717721

718722
if (written != NULL) {

src/aegis256x4/aegis256x4_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ state_encrypt_detached_final(aegis256x4_state *st_, uint8_t *c, size_t clen_max,
561561
(_aegis256x4_state *) ((((uintptr_t) &st_->opaque) + (ALIGNMENT - 1)) &
562562
~(uintptr_t) (ALIGNMENT - 1));
563563

564+
(void) c;
565+
(void) clen_max;
564566
memcpy(blocks, st->blocks, sizeof blocks);
565567

566568
if (written != NULL) {

0 commit comments

Comments
 (0)