Fix unused variable warning in CrashHelpers.h

This commit is contained in:
Ryan Huffman 2016-04-13 09:42:20 -07:00
parent 0c1277ae7a
commit 91da4229ac

View file

@ -72,9 +72,9 @@ void outOfBoundsVectorCrash() {
void newFault() {
qDebug() << "About to crash inside new fault";
// Force crash with large allocation
int *crash = new int[std::numeric_limits<uint64_t>::max()];
}
int* crash = new int[std::numeric_limits<uint64_t>::max()];
// Use variable to suppress warning
crash[0] = 0;
}
#endif // hifi_CrashHelpers_h