1
0
Fork 0

mark missing sizeof/countof as warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1049 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent 30f48a64f4
commit ec84974580

@ -31,8 +31,8 @@ DECL_STRUCT_P_FUNC(`$1', `$2', 1)
pushdef(`ELEMENTS_DONE')
IFAUTOCHECK(`
/* {{{ init assert */
ifdef(`SIZEOF_$1', , `m4_errprint(`missing SIZEOF_$1, safe to ignore')')
ifdef(`COUNTOF_$1', , `m4_errprint(`missing COUNTOF_$1, safe to ignore')')
ifdef(`SIZEOF_$1', , `m4_errprint(`Warning: missing SIZEOF_$1, safe to ignore')')
ifdef(`COUNTOF_$1', , `m4_errprint(`Warning: missing COUNTOF_$1, safe to ignore')')
dnl SIZEOF_x COUNTOF_x can be both defined or both not
ifdef(`SIZEOF_$1', `
ifdef(`COUNTOF_$1', , `m4_errprint(`AUTOCHECK WARN: missing COUNTOF_$1')')

Loading…
Cancel
Save