phosphor-regulators: squash warning on GCC-13 only

The change to squash the warning for dangling-reference can only be
applied to GCC-13.  On GCC-12, the compiler doesn't know about this
warning and fails when it comes across the unknown warning parameter.

Hopefully the false positives present here will be resolved in a future
version of GCC so we are being specific about GCC-13 instead of
exempting for GCC 13 and higher so that we are forced to revisit
this later.

Fixes 974a794021c1c7430f17a9dfcf5d7b9cebf582a9

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iee3d0d8da3cec57d2199de2511d277c3bf4b33f3
diff --git a/phosphor-regulators/src/config_file_parser.hpp b/phosphor-regulators/src/config_file_parser.hpp
index 1829e23..1608fb9 100644
--- a/phosphor-regulators/src/config_file_parser.hpp
+++ b/phosphor-regulators/src/config_file_parser.hpp
@@ -88,7 +88,9 @@
  * @param property property name
  */
 #pragma GCC diagnostic push
+#if __GNUC__ == 13
 #pragma GCC diagnostic ignored "-Wdangling-reference"
+#endif
 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element,
                                                  const std::string& property)
 {