changeset 748:3f59c5ab7fea

Add #ifdef to avoid unused variable warning.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 Dec 2022 13:20:56 +0200
parents 57ccf6402d2a
children feadd3678d2e
files tests.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Wed Dec 21 13:20:06 2022 +0200
+++ b/tests.c	Wed Dec 21 13:20:56 2022 +0200
@@ -802,7 +802,9 @@
     {
         char *home = th_get_home_dir(), *cfg = th_get_config_dir();
         th_stat_data stat;
+#ifdef TH_PLAT_UNIX
         int res;
+#endif
 
         TEST1A("%s", home, !=, NULL);
         TEST1A("%s", cfg, !=, NULL);