mate-desktop / mate-panel

MATE panel
https://mate-desktop.org
GNU General Public License v2.0
185 stars 118 forks source link

clock: cast from function call of type 'gdouble' to non-matching type #1303

Closed rbuj closed 2 years ago

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

Fix the build warning below:

clock.c:1825:23: warning: cast from function call of type 'gdouble' (aka 'double') to non-matching type 'int' [-Wbad-function-cast]
        value = (int) gtk_adjustment_get_value (adj);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~