From 36c9dc3e880c82b3a28decc8f5ab2e5f2337ef79 Mon Sep 17 00:00:00 2001 From: tTh Date: Sun, 24 Mar 2024 15:15:42 +0100 Subject: [PATCH] add warning messages --- funcs/displacement.c | 2 +- funcs/recurse.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/funcs/displacement.c b/funcs/displacement.c index 2749aa9..8e97863 100644 --- a/funcs/displacement.c +++ b/funcs/displacement.c @@ -46,7 +46,7 @@ if (foo) { if (verbosity) { fimg_print_minmax(minmax, (char *)__func__); } -dltr = minmax[1] - minmax[0]; +// dltr = minmax[1] - minmax[0]; dltg = minmax[3] - minmax[2]; dltb = minmax[5] - minmax[4]; diff --git a/funcs/recurse.c b/funcs/recurse.c index ec23db2..4f22c4c 100644 --- a/funcs/recurse.c +++ b/funcs/recurse.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "../floatimg.h" @@ -30,6 +31,10 @@ if (notused) { fprintf(stderr, "!!!!!! %s is a wip !!!!!\n", __func__); +if (fimg_images_not_compatible(src, dst)) { + fprintf(stderr, "%s: compatibility fatalerror\n", __func__); + exit(1); + } /* * bon, maintenant, il faut plonger dans du code du * siecle dernier et l'adapter a ce nouveau contexte