Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-967

Warning in ValueStoreCache.cpp when building on HP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.2.0
    • 2.3.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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            john.hibbert@uk.ibm.com John Hibbert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: