Fix test compilation error with Xcode 12.5.

This commit is contained in:
Kyle Neideck 2021-03-30 23:47:57 +11:00
parent 0a87596c1c
commit 169ee92802
No known key found for this signature in database
GPG key ID: CAA8D9B8E39EC18C

View file

@ -17,7 +17,7 @@
// BGM_TestUtils.h
// SharedSource
//
// Copyright © 2016 Kyle Neideck
// Copyright © 2016, 2021 Kyle Neideck
//
#ifndef __SharedSource__BGM_TestUtils__
@ -37,6 +37,7 @@
template<typename ExpectedException>
void BGMShouldThrow(XCTestCase* self, const std::function<void()>& f)
{
#pragma unused (self)
try
{
f();