Skip to content

Commit

Permalink
Add printf to tests, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-aria committed Jan 4, 2025
1 parent 73b2542 commit f6059cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deluge/util/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,12 +1344,12 @@ bool isAudioFilename(char const* filename) {
if (filename[0] == '.') {
return false;
}
char* dotPos = strrchr(filename, '.');
const char* dotPos = strrchr(filename, '.');
return (!strcasecmp(dotPos, ".WAV") || !strcasecmp(dotPos, ".AIF") || !strcasecmp(dotPos, ".AIFF"));
}

bool isAiffFilename(char const* filename) {
char* dotPos = strrchr(filename, '.');
const char* dotPos = strrchr(filename, '.');
return (dotPos != NULL && (!strcasecmp(dotPos, ".AIF") || !strcasecmp(dotPos, ".AIFF")));
}

Expand Down Expand Up @@ -2129,7 +2129,7 @@ bool doesFilenameFitPrefixFormat(char const* fileName, char const* filePrefix, i
return false;
}

char* dotAddress = strrchr(fileName, '.');
const char* dotAddress = strrchr(fileName, '.');
if (!dotAddress) {
return false;
}
Expand Down
3 changes: 3 additions & 0 deletions tests/32bit_unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ file(GLOB_RECURSE deluge_SOURCES

# Used by most other modules
../../src/deluge/util/*
../../src/lib/printf.c
)

file(GLOB_RECURSE mock_SOURCES
Expand All @@ -52,6 +53,7 @@ target_include_directories(MemoryManagerTests PRIVATE
mocks
../../src/deluge
../../src/NE10/inc
../../src/lib
../../src
)

Expand Down Expand Up @@ -90,6 +92,7 @@ target_include_directories(SmallPointerTests PRIVATE
mocks
../../src/deluge
../../src/NE10/inc
../../src/lib
../../src
)

Expand Down

0 comments on commit f6059cd

Please sign in to comment.