Skip to content
Snippets Groups Projects
Commit f95f80d1 authored by Steven Bosscher's avatar Steven Bosscher Committed by Steven Bosscher
Browse files

re PR c/23228 (Silly "unused variable" warning after redeclaration of a local variable)

	PR c/23228
	* c-decl.c (pop_scope): Don't warn about an unused variable
	if it is marked with TREE_NO_WARNING.
	(duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
	somenow mismatch and olddecl is to be replaced.

From-SVN: r105621
parent e48050bd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment