mate-desktop / mate-session-manager

MATE session manager
https://mate-desktop.org
GNU General Public License v2.0
28 stars 35 forks source link

Fix implicit conversion changes signedness: 'gboolean' to 'guint' #294

Closed rbuj closed 1 year ago

rbuj commented 2 years ago
git submodule init
git submodule update --recursive --remote
CFLAGS="-Wconversion -Wunused-macros -Wunused-parameter" CC=clang ./autogen.sh --prefix=/usr --enable-debug --enable-compile-warnings=maximum && make &> make.log
gsm-xsmp-client.c:442:59: warning: implicit conversion changes signedness: 'gboolean' (aka 'int') to 'guint' (aka 'unsigned int') [-Wsign-conversion]
                priv->next_save_yourself_allow_interact = allow_interact;
                                                        ~ ^~~~~~~~~~~~~~
--
gsm-consolekit.c:248:38: warning: implicit conversion changes signedness: 'gboolean' (aka 'int') to 'guint32' (aka 'unsigned int') [-Wsign-conversion]
                priv->is_connected = is_connected;
                                   ~ ^~~~~~~~~~~~
--
gsm-systemd.c:248:30: warning: implicit conversion changes signedness: 'gboolean' (aka 'int') to 'guint32' (aka 'unsigned int') [-Wsign-conversion]
        priv->is_connected = is_connected;
                           ~ ^~~~~~~~~~~~