From e1f8c16702d09adf174b7094d6a0280430df149c Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Thu, 2 Feb 2023 07:25:12 +1100 Subject: [PATCH] Fix diagnostics pop error --- include/cxxopts.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 9548478..abfd80d 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1551,6 +1551,7 @@ class ParseResult // GCC complains about m_iter not being initialised in the member // initializer list +CXXOPTS_DIAGNOSTIC_PUSH CXXOPTS_IGNORE_WARNING("-Weffc++") Iterator(const ParseResult *pr, bool end=false) : m_pr(pr)