changeset 23:71dd4b96221b

fix some compiler warning
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Fri, 20 Dec 2024 12:53:41 +0100
parents d8551fb39a5e
children 9f20bce6184e
files Fotopoulos/test-hart.c Fotopoulos/test-pv.c Meerwald/cmp_kund2_sig.c
diffstat 3 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Fotopoulos/test-hart.c	Sat Jan 28 23:57:51 2023 +0100
+++ b/Fotopoulos/test-hart.c	Fri Dec 20 12:53:41 2024 +0100
@@ -26,11 +26,9 @@
 {
   int row, col, count;
   long int elem, L, M, seed, i;
-  double a;
   double z;
   M = coeff_start;
   L = wm_length;
-  a = wm_alpha;
   for (i = 1; i <= 1000; i++) {
     seed = i;
     z = 0.0;
--- a/Fotopoulos/test-pv.c	Sat Jan 28 23:57:51 2023 +0100
+++ b/Fotopoulos/test-pv.c	Fri Dec 20 12:53:41 2024 +0100
@@ -30,11 +30,9 @@
 {
   int row, col, count;
   long int elem, L, M, temp, seed, i;
-  double a;
   double z;
   M = start_coeff;
   L = wm_length;
-  a = wm_alpha;
   for (i = 1; i <= 1000; i++) {
     seed = i;
     z = 0.0;
--- a/Meerwald/cmp_kund2_sig.c	Sat Jan 28 23:57:51 2023 +0100
+++ b/Meerwald/cmp_kund2_sig.c	Fri Dec 20 12:53:41 2024 +0100
@@ -185,8 +185,6 @@
 // fprintf(stderr, "YYY %d %f\n", i, s);
       set_signature_bit(i, s > 0 ? 1 : 0);
     }
-
-    free(binstr);
   }
   else {
     fprintf(stderr, "%s: invalid watermark file %s\n", progname, input_name);

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.