Skip to content

Commit

Permalink
build: fix gcc warnings (only the real ones)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Oct 4, 2024
1 parent 99efe48 commit d89a013
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/db/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ int dt_db_read(dt_db_t *db, const char *filename)
if(!strcmp(what, "rating")) { ft->active |= 1<<s_prop_rating; ft->rating = atol(val); }
if(!strcmp(what, "label")) { ft->active |= 1<<s_prop_labels; ft->labels = atol(val); }
if(!strcmp(what, "create date")) { ft->active |= 1<<s_prop_createdate; snprintf(ft->createdate, sizeof(ft->createdate), "%s", val); }
if(!strcmp(what, "file type")) { ft->active |= 1<<s_prop_filetype; snprintf(dt_token_str(ft->filetype), 8, "%.8s", val); }
if(!strcmp(what, "file type")) { ft->active |= 1<<s_prop_filetype; strncpy(dt_token_str(ft->filetype), val, 8); }
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/nuklear_glfw_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ NK_API void nk_glfw3_char_callback(GLFWwindow *win, unsigned int codepoint);
NK_API void nk_glfw3_scroll_callback(GLFWwindow *win, double xoff, double yoff);
NK_API void nk_glfw3_mouse_button_callback(GLFWwindow *win, int button, int action, int mods);

NK_API void nk_glfw3_setup_display_colour_management(float *g0, float *M0, float *g1, float *M1, int xpos1, int bitdepth);
NK_API void nk_glfw3_setup_display_colour_management(float g0[3], float M0[9], float g1[3], float M1[9], int xpos1, int bitdepth);
NK_API void nk_glfw3_win1_open(struct nk_context *ctx, VkRenderPass render_pass, GLFWwindow *win, VkDeviceSize max_vertex_buffer, VkDeviceSize max_element_buffer);
NK_API void nk_glfw3_win1_close();
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widget_recentcollect.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ recently_used_collections_parse(
if(!strcmp(filter, "rating")) { ft->active |= 1<<s_prop_rating; ft->rating = atol(val); ft->rating_cmp = !strcmp(ext, "==") ? 1 : !strcmp(ext, "<") ? 2 : 0; }
if(!strcmp(filter, "labels")) { ft->active |= 1<<s_prop_labels; ft->labels = atol(val); }
if(!strcmp(filter, "createdate")) { ft->active |= 1<<s_prop_createdate; snprintf(ft->createdate, sizeof(ft->createdate), "%s", val); }
if(!strcmp(filter, "filetype")) { ft->active |= 1<<s_prop_filetype; snprintf(dt_token_str(ft->filetype), 8, "%.8s", val); }
if(!strcmp(filter, "filetype")) { ft->active |= 1<<s_prop_filetype; strncpy(dt_token_str(ft->filetype), val, 8); }
while(*end != '&' && *end != 0) end++;
if(*end == 0) break;
}
Expand Down

0 comments on commit d89a013

Please sign in to comment.