Snippets for xaos 4.3.7 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/r5irj2289sszblcdnbfybk1v8hrwd4qq-xaos-4.3.7.drv.
-
src/ui/customdialog.h:25:19: warning: ISO C++ forbids flexible array member 'newColors' [-Wpedantic] 25 | unsigned char newColors[][3]; | ^~~~~~~~~ -
src/include/xmenu.h:398:30: warning: division 'sizeof (menuitem*) / sizeof (menuitem)' does not compute the number of array elements [-Wsizeof-pointer-div] 398 | #define NITEMS(n) (sizeof(n) / sizeof(menuitem)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
src/ui/main.cpp:478:10: warning: variable 'success' set but not used [-Wunused-but-set-variable] 478 | bool success; | ^~~~~~~ -
src/include/xmenu.h:275:49: warning: cast between incompatible function types from 'int (*)(uih_context*, int)' to 'int (*)()' [-Wcast-function-type] 275 | menuitems_i18n[no_menuitems_i18n].control = (int (*)(void))_checkbutton; \
-
src/include/xmenu.h:249:49: warning: cast between incompatible function types from 'int (*)(uih_context*)' to 'int (*)()' [-Wcast-function-type] 249 | menuitems_i18n[no_menuitems_i18n].control = (int (*)(void))_checkbutton; \
-
src/engine/palettef.cpp:30:13: warning: storing the address of local variable 'p' in '*p.palette::data' [-Wdangling-pointer=] 30 | p->data = &p; | ~~~~~~~~^~~~ -
src/engine/3d.cpp:103:56: warning: 'void* calloc(size_t, size_t)' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 103 | struct threeddata *d = (struct threeddata *)calloc(sizeof(*d), 1); | ^~~~~~~~~~ -
src/ui-hlp/menu.cpp:677:64: warning: unused parameter 'uih' [-Wunused-parameter] 677 | static menudialog *uih_palettepickerdialog(struct uih_context *uih) | ~~~~~~~~~~~~~~~~~~~~^~~ -
src/ui-hlp/menu.cpp:743:71: warning: unused parameter 'p' [-Wunused-parameter] 743 | static void uih_palettegradient(struct uih_context *uih, dialogparam *p) | ~~~~~~~~~~~~~^ -
src/ui-hlp/menu.cpp:787:69: warning: unused parameter 'p' [-Wunused-parameter] 787 | static void uih_palettepicker(struct uih_context *uih, dialogparam *p) | ~~~~~~~~~~~~~^ -
src/include/xmenu.h:314:49: warning: cast between incompatible function types from 'int (*)(uih_context*)' to 'int (*)()' [-Wcast-function-type] 314 | menuitems_i18n[no_menuitems_i18n].control = (int (*)(void))_check; \
-
src/include/xmenu.h:344:49: warning: cast between incompatible function types from 'int (*)(uih_context*)' to 'int (*)()' [-Wcast-function-type] 344 | menuitems_i18n[no_menuitems_i18n].control = (int (*)(void))_check; \
-
src/ui-hlp/menu.cpp:1603:27: warning: cast between incompatible function types from 'int (*)(uih_context*, int)' to 'int (*)()' [-Wcast-function-type] 1603 | item[i].control = (int (*)(void))uih_selectedformula; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/ui-hlp/menu.cpp:1648:27: warning: cast between incompatible function types from 'int (*)(uih_context*, int)' to 'int (*)()' [-Wcast-function-type] 1648 | item[i].control = (int (*)(void))uih_filterenabled; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/ui-hlp/ui_helper.cpp:2001:33: warning: 'void* calloc(size_t, size_t)' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2001 | uih = (uih_context *)calloc(sizeof(*uih), 1); /*setup parameters */ | ^~~~~~~~~~~~ -
src/util/xmenu.cpp:427:26: warning: cast between incompatible function types from 'int (*)()' to 'int (*)(uih_context*)' [-Wcast-function-type] 427 | return (((int (*)(struct uih_context *))item->control)(c)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/util/xmenu.cpp:429:26: warning: cast between incompatible function types from 'int (*)()' to 'int (*)(uih_context*, int)' [-Wcast-function-type] 429 | return (((int (*)(struct uih_context *, int))item->control)( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
src/util/xmenu.cpp:432:26: warning: cast between incompatible function types from 'int (*)()' to 'int (*)(uih_context*, const char*)' [-Wcast-function-type] 432 | return (((int (*)(struct uih_context *, const char *)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 433 | item->control)(c, (const char *)item->pparam)); | ~~~~~~~~~~~~~ -
src/util/xmenu.cpp:489:27: warning: cast between incompatible function types from 'int (*)(uih_context*, int)' to 'int (*)()' [-Wcast-function-type] 489 | item[i].control = (int (*)(void))control; | ^~~~~~~~~~~~~~~~~~~~~~ -
src/sffe/sffe.cpp:369:10: warning: ISO C++ forbids variable length array 'fn' [-Wvla] 369 | char fn[len + 1]; | ^~ -
src/util/xstdio.cpp:182:11: warning: ISO C++ forbids variable length array 'paths' [-Wvla] 182 | char *paths[example_paths_taken.size()]; | ^~~~~