Revision: 54954
http://brlcad.svn.sourceforge.net/brlcad/?rev=54954&view=rev
Author: brlcad
Date: 2013-03-29 03:14:21 +0000 (Fri, 29 Mar 2013)
Log Message:
-----------
quell gcc false positive due to the parameter getting set within the
expression. initialize explicitly for good measure anyways.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/arb8/arb8.c
Modified: brlcad/trunk/src/librt/primitives/arb8/arb8.c
===================================================================
--- brlcad/trunk/src/librt/primitives/arb8/arb8.c 2013-03-29 02:47:28 UTC
(rev 54953)
+++ brlcad/trunk/src/librt/primitives/arb8/arb8.c 2013-03-29 03:14:21 UTC
(rev 54954)
@@ -2394,14 +2394,16 @@
{
int i;
fastf_t dist=MAX_FASTF, tmp_dist;
- short (*edge_list)[2];
+ short (*edge_list)[2] = {0};
int edge_count=0;
struct bn_tol tol;
struct rt_arb_internal *aip = (struct rt_arb_internal *)ip->idb_ptr;
RT_ARB_CK_MAGIC(aip);
+
/* first build a list of edges */
- if ((edge_count = rt_arb_get_edge_list(ip, &edge_list)) == 0)
+ edge_count = rt_arb_get_edge_list(ip, &edge_list);
+ if (edge_count == 0)
return -1;
/* build a tolerance structure for the bn_dist routine */
@@ -2409,7 +2411,7 @@
tol.dist = 0.0;
tol.dist_sq = 0.0;
tol.perp = 0.0;
- tol.para = 1.0;
+ tol.para = 1.0;
/* now look for the closest edge */
for (i = 0; i < edge_count; i++) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits