mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
158 stars 66 forks source link

pluma-commands-search: fix warning -Wenum-conversion #641

Closed rbuj closed 2 years ago

rbuj commented 2 years ago
CC=clang CFLAGS="-g -O0 -Wconversion -Wunused-macros -Wunused-parameter" ./autogen.sh --prefix=/usr --enable-debug  --enable-compile-warnings=maximum && make &> make.log && sudo make install

Fix build warning:

pluma-commands-search.c:401:28: warning: implicit conversion from enumeration type 'GtkTextSearchFlags' to different enumeration type 'GRegexCompileFlags' [-Wenum-conversion]
                                                    match_case ? 0 : GTK_TEXT_SEARCH_CASE_INSENSITIVE ,
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Test: find and replace a regex with or without match case.

Captura de Pantalla 2021-10-20 a les 21 19 02
raveit65 commented 2 years ago

Test: find and replace a regex with or without match case.

I see no different in behavior.