Fix compiler warnings

This commit is contained in:
Lawrence Lee
2024-11-17 15:39:07 -08:00
parent 4e9ceff1e9
commit cf20964b59
4 changed files with 3 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ bool CPBDump(
}
// open the file in write mode
const std::unique_ptr<FILE, decltype(&std::fclose)> f(g_fopen(commFName.c_str (), "wt"), &std::fclose);
const std::unique_ptr<FILE, int (*)(FILE *)> f(g_fopen(commFName.c_str(), "wt"), &std::fclose);
if (!f) {
printf ("CPBDump(\"%s\") >>> Error: unable to open file with write access!\n", commFName.c_str());