forked from mirrors/0ad
Remove UNUSED
The `UNUSED` macro is used to mark a variable as unused but with a name. Those usages are replaced with comments so that `UNUSED` can be removed. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void Put(const char* name, const u8* UNUSED(data), size_t len)
|
||||
void Put(const char* name, const u8* /*data*/, size_t len)
|
||||
{
|
||||
#if DEBUG_SERIALIZER_ANNOTATE
|
||||
m_Length += 2; // '<' and '>'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2019 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -119,7 +119,7 @@ CStr CNetStatsTable::GetCellText(size_t row, size_t col)
|
||||
#undef ROW
|
||||
}
|
||||
|
||||
AbstractProfileTable* CNetStatsTable::GetChild(size_t UNUSED(row))
|
||||
AbstractProfileTable* CNetStatsTable::GetChild(size_t /*row*/)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user