mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Fix compilation with GCC 8 (#1051)
The anonymous namespace was renamed due to -Wsubobject-linkage complaining about a field created in a GTest template class (CborRoundtripTestParam) being defined in an anonymous namespace. See https://stackoverflow.com/a/37723265.
This commit is contained in:
committed by
Peter Johnson
parent
74d7107ac6
commit
5ff3d837b6
@@ -70,7 +70,7 @@ using wpi::json;
|
||||
|
||||
try {
|
||||
json::parse(json_string);
|
||||
} catch (json::parse_error) {
|
||||
} catch (json::parse_error&) {
|
||||
if (success_expected)
|
||||
{
|
||||
basemsg = "parse_error";
|
||||
|
||||
Reference in New Issue
Block a user