Print this page
11972 resync smatch
*** 37,47 ****
int a = 1;
static int b = a; // KO
}
/*
! * check-name: static storage object initializer constness verification.
* check-command: sparse -Wconstexpr-not-const $file
*
* check-error-start
constexpr-init.c:16:21: warning: non-constant initializer for static object
constexpr-init.c:17:25: warning: non-constant initializer for static object
--- 37,47 ----
int a = 1;
static int b = a; // KO
}
/*
! * check-name: constexprness static storage object initializer
* check-command: sparse -Wconstexpr-not-const $file
*
* check-error-start
constexpr-init.c:16:21: warning: non-constant initializer for static object
constexpr-init.c:17:25: warning: non-constant initializer for static object