Browse Source

mark missing sizeof/countof as warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1049 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
ec84974580
  1. 4
      processor/struct.m4

4
processor/struct.m4

@ -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