[Bug 207193] palm/palm-db-tools: fix build with clang 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 14 21:33:39 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207193

            Bug ID: 207193
           Summary: palm/palm-db-tools: fix build with clang 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dim at FreeBSD.org

Created attachment 166998
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=166998&action=edit
Fix for loop increment

During a recent exp-run for bug 206074, it was found that palm/palm-db-tools
gives errors with clang 3.8.0 [1]:

DB.cpp:1328:21: error: variable 'j' used in loop condition not modified in loop
body [-Werror,-Wfor-loop-analysis]
        for (j = 0; j < 31; i++) {
                    ^
Clang is right here, the loop should increment j, not i.  The attached patch
makes it so.

[1]
http://package22.nyi.freebsd.org/data/headamd64PR206074-default/2016-02-14_06h53m40s/logs/errors/palm-db-tools-0.3.6.log

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list