mirror of
https://github.com/open-goal/jak-project
synced 2026-07-03 21:10:50 -04:00
cleanup our cmake and build warnings (#2876)
This commit is contained in:
@@ -677,7 +677,7 @@ static void link_v3(LinkedObjectFile& f,
|
||||
}
|
||||
|
||||
if (game_version == GameVersion::Jak2) {
|
||||
bool adjusted = false;
|
||||
[[maybe_unused]] bool adjusted = false;
|
||||
while (segment_size % 4) {
|
||||
segment_size++;
|
||||
adjusted = true;
|
||||
|
||||
@@ -309,7 +309,7 @@ class ObjectFileDB {
|
||||
void for_each_function(Func f) {
|
||||
for_each_obj([&](ObjectFileData& data) {
|
||||
for (int i = 0; i < int(data.linked_data.segments); i++) {
|
||||
int fn = 0;
|
||||
[[maybe_unused]] int fn = 0;
|
||||
for (auto& goal_func : data.linked_data.functions_by_seg.at(i)) {
|
||||
f(goal_func, i, data);
|
||||
fn++;
|
||||
@@ -334,7 +334,7 @@ class ObjectFileDB {
|
||||
template <typename Func>
|
||||
void for_each_function_def_order_in_obj(ObjectFileData& data, Func f) {
|
||||
for (int i = 0; i < int(data.linked_data.segments); i++) {
|
||||
int fn = 0;
|
||||
[[maybe_unused]] int fn = 0;
|
||||
for (size_t j = data.linked_data.functions_by_seg.at(i).size(); j-- > 0;) {
|
||||
f(data.linked_data.functions_by_seg.at(i).at(j), i);
|
||||
fn++;
|
||||
@@ -357,7 +357,7 @@ class ObjectFileDB {
|
||||
|
||||
template <typename Func>
|
||||
void for_each_function_in_seg_in_obj(int seg, ObjectFileData& data, Func f) {
|
||||
int fn = 0;
|
||||
[[maybe_unused]] int fn = 0;
|
||||
if (data.linked_data.segments == 3) {
|
||||
for (size_t j = data.linked_data.functions_by_seg.at(seg).size(); j-- > 0;) {
|
||||
f(data.linked_data.functions_by_seg.at(seg).at(j));
|
||||
|
||||
Reference in New Issue
Block a user