diff --git a/src/system/kernel/debug/core_dump.cpp b/src/system/kernel/debug/core_dump.cpp index 11536c81b4..018d94d7ff 100644 --- a/src/system/kernel/debug/core_dump.cpp +++ b/src/system/kernel/debug/core_dump.cpp @@ -777,6 +777,11 @@ struct CoreDumper { status_t Dump(const char* path, bool killTeam) { + // gcc thinks fTeam may be null in atomic_or + // and warn which causes error on some configs + if (fTeam == NULL) + return B_ERROR; + // the path must be absolute if (path[0] != '/') return B_BAD_VALUE;