mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
44 stars 47 forks source link

Avoid build warning #283

Closed yetist closed 5 years ago

yetist commented 5 years ago
/usr/include/glib-2.0/glib/gmacros.h:366:42: warning: division ‘sizeof (gchar ** {aka char **}) / sizeof (gchar * {aka char *})’ does not compute the number of array elements [-Wsizeof-pointer-div]
  366 | #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
      |                                          ^
msd-ldsm-dialog.c:163:25: note: in expansion of macro ‘G_N_ELEMENTS’
  163 |         for (i = 0; i < G_N_ELEMENTS (settings_list); i++) {
      |                         ^~~~~~~~~~~~
monsta commented 5 years ago

Wonder how this condition worked before...