From 03b8cccb27ca305ba971dc94e4f87ec47525d319 Mon Sep 17 00:00:00 2001 From: anishmonachan7 <43343442+anishmonachan7@users.noreply.github.com> Date: Wed, 7 Apr 2021 15:24:04 +0200 Subject: [PATCH] Update include/valijson/constraints/concrete_constraints.hpp Co-authored-by: Tristan Penman --- include/valijson/constraints/concrete_constraints.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/valijson/constraints/concrete_constraints.hpp b/include/valijson/constraints/concrete_constraints.hpp index b4df95e..9e67c19 100644 --- a/include/valijson/constraints/concrete_constraints.hpp +++ b/include/valijson/constraints/concrete_constraints.hpp @@ -914,9 +914,10 @@ public: freeFn(ptr); throw; } +#else + // pretend to use freeFn to avoid warning in GCC 8.3 + (void)freeFn; #endif - - (void)freeFn; } virtual bool validate(const adapters::Adapter &target,