mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
193 stars 86 forks source link

boxes: fix build warning -Wstring-conversion #719

Closed rbuj closed 2 years ago

rbuj commented 2 years ago
core/boxes.c:1372:15: warning: implicit conversion turns string literal into bool: 'char [53]' to '_Bool' [-Wstring-conversion]
    g_assert ("Some idiot wanted to sort sides of different types.\n");
    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:232:59: note: expanded from macro 'g_assert'
                                             if G_LIKELY (expr) ; else \
                                             ~~           ^~~~
/usr/include/glib-2.0/glib/gmacros.h:1091:25: note: expanded from macro 'G_LIKELY'
#define G_LIKELY(expr) (expr)
                        ^~~~