Date: Sun, 14 Feb 2016 21:33:39 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 207193] palm/palm-db-tools: fix build with clang 3.8.0 Message-ID: <bug-207193-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207193 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@FreeBSD.org Reporter: dim@FreeBSD.org Created attachment 166998 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166998&action= =3Dedit 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 =3D 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207193-13>