From 46ed46aa72cf9c08a38d6094819235c88a109fe1 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 13 Nov 2019 11:31:20 -0600 Subject: Avoid unused-variable warnings: change static const strings in a couple of header-file templates to #defines. --- hl/test/H5srcdir_str.h.in | 2 +- test/H5srcdir_str.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hl/test/H5srcdir_str.h.in b/hl/test/H5srcdir_str.h.in index bab1df3..ba30a88 100644 --- a/hl/test/H5srcdir_str.h.in +++ b/hl/test/H5srcdir_str.h.in @@ -16,5 +16,5 @@ */ /* Set the 'srcdir' path from configure time */ -static const char *config_srcdir = "@srcdir@"; +#define config_srcdir "@srcdir@" diff --git a/test/H5srcdir_str.h.in b/test/H5srcdir_str.h.in index bab1df3..ba30a88 100644 --- a/test/H5srcdir_str.h.in +++ b/test/H5srcdir_str.h.in @@ -16,5 +16,5 @@ */ /* Set the 'srcdir' path from configure time */ -static const char *config_srcdir = "@srcdir@"; +#define config_srcdir "@srcdir@" -- cgit v0.12