You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit e0c6b11 has suppressed cppcheck "unused label" warnings by having entry = (void *) 1.
However, if we did not declare safe as NULL or anything else (which is not necessary in linux kernel, where we declare variables at the beginning of block), cppcheck still considers safe as an uninitialized variable. Thus, the commit still cannot be made unless we initialize the variable first.
The original commit set both entry and safe to (void *) 1,
Commit e0c6b11 has suppressed cppcheck "unused label" warnings by having
entry = (void *) 1
.However, if we did not declare
safe
asNULL
or anything else (which is not necessary in linux kernel, where we declare variables at the beginning of block), cppcheck still considerssafe
as an uninitialized variable. Thus, the commit still cannot be made unless we initialize the variable first.The original commit set both
entry
andsafe
to(void *) 1
,while the merged commit to master neglect
safe
.Wondering if it is necessary to make the change.
The text was updated successfully, but these errors were encountered: