Skip to content
Snippets Groups Projects
Commit 026698d2 authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

re PR c++/44443 (-Wunused-but-set-variable problem with unused attribute on type)

	PR c++/44443
	* decl.c (initialize_local_var): If TREE_USED is set on the type,
	set also DECL_READ_P on the decl.

	* c-c++-common/Wunused-var-11.c: New test.

From-SVN: r160387
parent 75522f21
Loading
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