working diags of unused decl (var)