Current trunk doesn't bootstrap with --enable-checking=release
due to improper nesting of namespaces and #if CHECKING_P blocks.
This corrects that.
gcc/
PR other/121260
* diagnostics/changes.cc: Correct nesting of namespaces
and #if CHECKING_P blocks.
* diagnostics/context.cc: Likewise.
* diagnostics/html-sink.cc: Likewise.
* diagnostics/output-spec.cc: Likewise.
* diagnostics/sarif-sink.cc: Likewise.
Signed-off-by: Mikael Pettersson <mikpelinux@gmail.com>
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
}
} // namespace diagnostics::changes::selftest
+
+#endif /* CHECKING_P */
+
} // namespace diagnostics::changes
+#if CHECKING_P
+
namespace selftest { // diagnostics::selftest
/* Run all of the selftests within this file. */
}
} // namespace selftest
-} // namespace diagnostics
#endif /* CHECKING_P */
+
+} // namespace diagnostics
}
} // namespace diagnostics::selftest
-} // namespace diagnostics
#endif /* #if CHECKING_P */
+} // namespace diagnostics
+
#if __GNUC__ >= 10
# pragma GCC diagnostic pop
#endif
}
} // namespace selftest
-} // namespace diagnostics
#endif /* CHECKING_P */
+
+} // namespace diagnostics
}
} // namespace diagnostics::selftest
-} // namespace diagnostics
#endif /* #if CHECKING_P */
+
+} // namespace diagnostics
}
} // namespace diagnostics::selftest
-} // namespace diagnostics
#endif /* CHECKING_P */
+
+} // namespace diagnostics