mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:13:41 +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() {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue