Print this page
new smatch

*** 23,33 **** static int a = 1; static int *b = &a; // OK } /* ! * check-name: address of static object constness verification. * check-command: sparse -Wconstexpr-not-const $file * * check-error-start constexpr-addr-of-static.c:6:17: warning: non-constant initializer for static object constexpr-addr-of-static.c:14:19: warning: non-constant initializer for static object --- 23,33 ---- static int a = 1; static int *b = &a; // OK } /* ! * check-name: constexpr static object address * check-command: sparse -Wconstexpr-not-const $file * * check-error-start constexpr-addr-of-static.c:6:17: warning: non-constant initializer for static object constexpr-addr-of-static.c:14:19: warning: non-constant initializer for static object