Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
2.2.0
-
None
-
Operating System: Other
Platform: HP
-
22018
Description
I get the following warning when building ValueStoreCache.cpp on HP:
Warning 156: "ValueStoreCache.cpp", line 184 # The variable 'valueStore'
may not be initialized on all possible paths from start of the function.
This corresponds to the following line of code:
ValueStore* valueStore = valueStore = new ValueStore(ic, fScanner);
There is no other valueStore variable in scope, so it appears that the
compiler is complaining about the double assignment.
I'm not sure what the double assignment does anyway, should this just be
ValueStore* valueStore = new ValueStore(ic, fScanner);