Weird code found by clang

Tor Lillqvist tml at iki.fi
Thu Mar 1 13:13:47 PST 2012


svtools/source/dialogs/addresstemplate.cxx:195:23: error:
self-comparison always evaluates to false
[-Werror,-Wtautological-compare]
        for (;pFields != pFields; ++pFields)
                      ^
What should this be? Or is what it currently does, exit the loop after
one pass through, actually what's wanted?

--tml


More information about the LibreOffice mailing list