[Github-comments] [geany/geany] Clang warnings: sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer (#2906)
Avinash Sonawane
notifications at xxxxx
Sun Sep 26 14:16:39 UTC 2021
Hello!
Currently, on latest master `clang` throws these warnings:
```
highlighting.c:1011:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(CONF);
^~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1014:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(DIFF);
^~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1032:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(MAKE);
^~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1034:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(MARKDOWN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1040:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(PO);
^~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1050:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
init_styleset_case(TXT2TAGS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:966:5: note: expanded from macro 'init_styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1091:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(ABAQUS);
^~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1092:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(ADA);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1093:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(ASM);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1094:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(BASIC);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1095:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(BATCH);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1097:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(CAML);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1098:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(CMAKE);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1100:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(COFFEESCRIPT);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1101:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(CONF);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1101:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(CONF);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1102:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(CSS);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1103:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(D);
^~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1104:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(DIFF);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1104:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(DIFF);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1105:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(LISP);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1106:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(ERLANG);
^~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1107:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(DOCBOOK);
^~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1109:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(F77);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1110:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(FORTH);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1111:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(FORTRAN);
^~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1113:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(HASKELL);
^~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1119:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(JULIA);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1120:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(LATEX);
^~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1121:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(LUA);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1122:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(MAKE);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1122:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(MAKE);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1123:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(MARKDOWN);
^~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1123:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(MARKDOWN);
^~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1124:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(MATLAB);
^~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1125:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(NSIS);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1127:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(PASCAL);
^~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1128:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(PERL);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1130:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(PO);
^~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1130:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(PO);
^~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1131:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(POWERSHELL);
^~~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1132:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(PYTHON);
^~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1133:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(R);
^~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1134:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(RUBY);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1135:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(RUST);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1136:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(SH);
^~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1137:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(SMALLTALK);
^~~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1138:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(SQL);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1139:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(TCL);
^~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1140:3: warning: 'sizeof (((HLKeyword *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(TXT2TAGS);
^~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1074:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_keywords_##LANG_NAME), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1140:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(TXT2TAGS);
^~~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1141:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(VHDL);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1142:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(VERILOG);
^~~~~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
highlighting.c:1144:3: warning: 'sizeof (((HLProperty *)((void *)0)))' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
styleset_case(YAML);
^~~~~~~~~~~~~~~~~~~
highlighting.c:1076:5: note: expanded from macro 'styleset_case'
HL_N_ENTRIES(highlighting_properties_##LANG_NAME)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./highlightingmappings.h:72:48: note: expanded from macro 'HL_N_ENTRIES'
#define HL_N_ENTRIES(array) ((array != NULL) ? G_N_ELEMENTS(array) : 0)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:840:42: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
~~~~~~~~~~~~ ^
54 warnings generated.
```
clang version 12.0.0-3ubuntu1~21.04.2 here BTW.
Thanks!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2906
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210926/0c4664fa/attachment-0001.htm>
More information about the Github-comments
mailing list