Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 8, 2024
1 parent 98e3516 commit 66d4f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions platforms/shared/desktop/nfd/nfd_cocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ nfdresult_t NFD_OpenDialogN(nfdnchar_t** outPath,
const nfdnfilteritem_t* filterList,
nfdfiltersize_t filterCount,
const nfdnchar_t* defaultPath) {
nfdopendialognargs_t args = {0};
nfdopendialognargs_t args = {};
args.filterList = filterList;
args.filterCount = filterCount;
args.defaultPath = defaultPath;
Expand Down Expand Up @@ -282,7 +282,7 @@ nfdresult_t NFD_OpenDialogMultipleN(const nfdpathset_t** outPaths,
const nfdnfilteritem_t* filterList,
nfdfiltersize_t filterCount,
const nfdnchar_t* defaultPath) {
nfdopendialognargs_t args = {0};
nfdopendialognargs_t args = {};
args.filterList = filterList;
args.filterCount = filterCount;
args.defaultPath = defaultPath;
Expand Down Expand Up @@ -348,7 +348,7 @@ nfdresult_t NFD_SaveDialogN(nfdnchar_t** outPath,
nfdfiltersize_t filterCount,
const nfdnchar_t* defaultPath,
const nfdnchar_t* defaultName) {
nfdsavedialognargs_t args = {0};
nfdsavedialognargs_t args = {};
args.filterList = filterList;
args.filterCount = filterCount;
args.defaultPath = defaultPath;
Expand Down Expand Up @@ -413,7 +413,7 @@ nfdresult_t NFD_SaveDialogU8_With_Impl(nfdversion_t version,
}

nfdresult_t NFD_PickFolderN(nfdnchar_t** outPath, const nfdnchar_t* defaultPath) {
nfdpickfoldernargs_t args = {0};
nfdpickfoldernargs_t args = {};
args.defaultPath = defaultPath;
return NFD_PickFolderN_With_Impl(NFD_INTERFACE_VERSION, outPath, &args);
}
Expand Down Expand Up @@ -465,7 +465,7 @@ nfdresult_t NFD_PickFolderU8_With_Impl(nfdversion_t version,
}

nfdresult_t NFD_PickFolderMultipleN(const nfdpathset_t** outPaths, const nfdnchar_t* defaultPath) {
nfdpickfoldernargs_t args = {0};
nfdpickfoldernargs_t args = {};
args.defaultPath = defaultPath;
return NFD_PickFolderMultipleN_With_Impl(NFD_INTERFACE_VERSION, outPaths, &args);
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/shared/desktop/stb/stb_image_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, f
#ifdef __STDC_LIB_EXT1__
len = sprintf_s(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#else
len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
len = snprintf(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#endif
s->func(s->context, buffer, len);

Expand Down

0 comments on commit 66d4f41

Please sign in to comment.