mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
Fix unused variable warning in CrashHelpers.h
This commit is contained in:
parent
0c1277ae7a
commit
91da4229ac
1 changed files with 3 additions and 3 deletions
|
@ -72,9 +72,9 @@ void outOfBoundsVectorCrash() {
|
||||||
void newFault() {
|
void newFault() {
|
||||||
qDebug() << "About to crash inside new fault";
|
qDebug() << "About to crash inside new fault";
|
||||||
// Force crash with large allocation
|
// 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
|
#endif // hifi_CrashHelpers_h
|
||||||
|
|
Loading…
Reference in a new issue