Revision: 56950
http://sourceforge.net/p/brlcad/code/56950
Author: tbrowder2
Date: 2013-08-19 11:48:36 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
added FIXME where gcc 4.8.1 reports error upon release build
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/dsp/dsp.c
brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c
brlcad/trunk/src/librt/primitives/nmg/nmg_rt_isect.c
Modified: brlcad/trunk/src/librt/primitives/dsp/dsp.c
===================================================================
--- brlcad/trunk/src/librt/primitives/dsp/dsp.c 2013-08-19 11:38:38 UTC (rev
56949)
+++ brlcad/trunk/src/librt/primitives/dsp/dsp.c 2013-08-19 11:48:36 UTC (rev
56950)
@@ -1181,6 +1181,11 @@
struct bu_list *spot;
#endif
+ /* FIXME: gcc 4.8.1 reports error here (rel build):
+/disk3/extsrc/brlcad-svn-trunk/src/librt/primitives/dsp/dsp.c:1184:9: error:
'seg_in.hit_vpriv[0]' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
+ dlog("add_seg %g %g line %d vpriv:%g %g\n", in_hit->hit_dist,
out_hit->hit_dist, line, in_hit->hit_vpriv[X], in_hit->hit_vpriv[Y]);
+ ^
+ */
dlog("add_seg %g %g line %d vpriv:%g %g\n", in_hit->hit_dist,
out_hit->hit_dist, line, in_hit->hit_vpriv[X], in_hit->hit_vpriv[Y]);
tt *= tt;
Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c 2013-08-19 11:38:38 UTC
(rev 56949)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_misc.c 2013-08-19 11:48:36 UTC
(rev 56950)
@@ -125,6 +125,11 @@
VSETALLN(crv_pt, 0.0, coords);
rt_nurb_c_eval(eg, t, crv_pt);
if (RT_NURB_IS_PT_RATIONAL(eg->pt_type)) {
+ /* FIXME: gcc 4.8.1 reports error here (rel build):
+/disk3/extsrc/brlcad-svn-trunk/src/librt/primitives/nmg/nmg_misc.c:128:42:
error: array subscript is below array bounds [-Werror=array-bounds]
+ VSCALE(pts[edge_no], crv_pt, crv_pt[coords-1]);
+ ^
+ */
VSCALE(pts[edge_no], crv_pt, crv_pt[coords-1]);
} else {
VMOVE(pts[edge_no], crv_pt);
Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_rt_isect.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_rt_isect.c 2013-08-19
11:38:38 UTC (rev 56949)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_rt_isect.c 2013-08-19
11:48:36 UTC (rev 56950)
@@ -1864,6 +1864,11 @@
}
if (rational) {
for (j = 0; j < coords-1; j++)
+ /* FIXME: gcc 4.8.1 reports error here (rel build):
+/disk3/extsrc/brlcad-svn-trunk/src/librt/primitives/nmg/nmg_rt_isect.c:1867:41:
error: array subscript is above array bounds [-Werror=array-bounds]
+ ctl_pt[i][j] = ctl_pt[i][j]/ctl_pt[i][coords-1];
+ ^
+ */
ctl_pt[i][j] = ctl_pt[i][j]/ctl_pt[i][coords-1];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits