From 06d661803c79e18bad3e943894a8a7bcba1352e8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 Aug 2021 19:20:47 -0600 Subject: [PATCH] [util] Fix compiler error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../util/options.cc:588:3: error: narrowing conversion of ‘font_size_flags’ from ‘unsigned int’ to ‘gint {aka int}’ inside { } [-Werror=narrowing] --- util/options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/options.cc b/util/options.cc index 31a98b14a..641376767 100644 --- a/util/options.cc +++ b/util/options.cc @@ -573,7 +573,7 @@ font_options_t::add_options (option_parser_t *parser) parser->free_later (font_size_text); } - unsigned font_size_flags = DEFAULT_FONT_SIZE == FONT_SIZE_NONE ? G_OPTION_FLAG_HIDDEN : 0; + int font_size_flags = DEFAULT_FONT_SIZE == FONT_SIZE_NONE ? G_OPTION_FLAG_HIDDEN : 0; GOptionEntry entries[] = { {"font-size", 0, font_size_flags,