Fix unused variable warning.

Change-Id: I7f87745669f6f9f22a77139dcf25518c68159595
Merge topic 'scalarbar-warnings' into master

a80bad6c Fix unused variable warning.