Mercurial > octave
view libgui/src/gui-preferences-ff.cc @ 33591:d26bc20bac10 default tip @
glob-match.cc: Silence compiler warning with GCC 14.
* liboctave/util/glob-match.cc (symbol_match::match): GCC 14 warns about
potentially using an uninitialized variable when 'sym_wildc_idx' is incremented.
That is never an issue because it will always be initialized when that part of
the code is reached. Silence that compiler warning anyway by initializing it
with a dummy value early on.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 15:04:11 +0200 |
parents | 2e484f9f1f18 |
children |
line wrap: on
line source
//////////////////////////////////////////////////////////////////////// // // Copyright (C) 2017-2024 The Octave Project Developers // // See the file COPYRIGHT.md in the top-level directory of this // distribution or <https://octave.org/copyright/>. // // This file is part of Octave. // // Octave is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Octave is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Octave; see the file COPYING. If not, see // <https://www.gnu.org/licenses/>. // //////////////////////////////////////////////////////////////////////// #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "gui-preferences-ff.h" // Find files dialog preferences gui_pref ff_file_name ("findfiles/file_name", QVariant ("*")); gui_pref ff_start_dir ("findfiles/start_dir", QVariant ("")); gui_pref ff_recurse_dirs ("findfiles/recurse_dirs", QVariant (false)); gui_pref ff_include_dirs ("findfiles/include_dirs", QVariant (false)); gui_pref ff_name_case ("findfiles/name_case", QVariant (false)); gui_pref ff_check_text ("findfiles/check_text", QVariant (false)); gui_pref ff_contains_text ("findfiles/contains_text", QVariant ("")); gui_pref ff_content_case ("findfiles/content_case", QVariant (false)); gui_pref ff_column_state ("findfiles/column_state", QVariant ()); gui_pref ff_sort_files_by_column ("findfiles/sort_files_by_column", QVariant (0)); gui_pref ff_sort_files_by_order ("findfiles/sort_files_by_order", QVariant (Qt::AscendingOrder));