Doesn't warn about the unused variable (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

llvm / llvm-project Public

Additional navigation options

New issue

New issue

Closed

#87348

Closed

Doesn't warn about the unused variable

#41447

#87348

Assignees

JOE1994

Labels

bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

@yurivict

Description

@yurivict

yurivict

opened

on Jun 2, 2019

Bugzilla Link 42102
Version 8.0
OS FreeBSD
Attachments testcase-unused-variable.cpp
CC @dwblaikie,@DougGregor,@zygoloid

Extended Description

The attached testcase has an unused variable 'err' but clang-8.0.0 doesn't complain even with -Wall.

FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions