From e1ef8fe27c63f15508b21b6c41497b64ef8c4553 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 28 Dec 2020 11:25:48 +0100 Subject: Remove warning -Wtype-limits --- libcaja-private/caja-icon-info.h | 2 +- src/file-manager/fm-icon-view.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libcaja-private/caja-icon-info.h b/libcaja-private/caja-icon-info.h index 10c62b4b..eb76bec3 100644 --- a/libcaja-private/caja-icon-info.h +++ b/libcaja-private/caja-icon-info.h @@ -13,7 +13,7 @@ extern "C" { /* Names for Caja's different zoom levels, from tiniest items to largest items */ typedef enum { - CAJA_ZOOM_LEVEL_SMALLEST, + CAJA_ZOOM_LEVEL_SMALLEST = 0, CAJA_ZOOM_LEVEL_SMALLER, CAJA_ZOOM_LEVEL_SMALL, CAJA_ZOOM_LEVEL_STANDARD, diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 9d57853b..4af14ea6 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -1229,7 +1229,7 @@ get_default_zoom_level (FMIconView *icon_view) (int *) &default_compact_zoom_level); } - return CLAMP (DEFAULT_ZOOM_LEVEL(icon_view), CAJA_ZOOM_LEVEL_SMALLEST, CAJA_ZOOM_LEVEL_LARGEST); + return MIN (DEFAULT_ZOOM_LEVEL(icon_view), CAJA_ZOOM_LEVEL_LARGEST); } static void -- cgit v1.2.1