Revision: 52506
http://brlcad.svn.sourceforge.net/brlcad/?rev=52506&view=rev
Author: r_weiss
Date: 2012-09-20 00:19:43 +0000 (Thu, 20 Sep 2012)
Log Message:
-----------
Update to file "ehy.c" to fix "unused variable" compile error.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/ehy/ehy.c
Modified: brlcad/trunk/src/librt/primitives/ehy/ehy.c
===================================================================
--- brlcad/trunk/src/librt/primitives/ehy/ehy.c 2012-09-19 21:41:08 UTC (rev
52505)
+++ brlcad/trunk/src/librt/primitives/ehy/ehy.c 2012-09-20 00:19:43 UTC (rev
52506)
@@ -266,7 +266,11 @@
struct ehy_specific *ehy;
fastf_t magsq_h;
- fastf_t mag_a, mag_h;
+#if 0
+ /* unused compile error */
+ fastf_t mag_a;
+#endif
+ fastf_t mag_h;
fastf_t c, r1, r2;
mat_t R;
mat_t Rinv;
@@ -280,7 +284,10 @@
return -2;
}
+#if 0
+ /* unused compile error */
mag_a = MAGSQ(xip->ehy_Au); /* a is unit vector, so |A|^2 == |A| */
+#endif
magsq_h = MAGSQ(xip->ehy_H);
mag_h = sqrt(magsq_h);
r1 = xip->ehy_r1;
@@ -921,7 +928,11 @@
int
rt_ehy_tess(struct nmgregion **r, struct model *m, struct rt_db_internal *ip,
const struct rt_tess_tol *ttol, const struct bn_tol *tol)
{
- fastf_t c, dtol, mag_a, mag_h, ntol, r1, r2, cprime;
+#if 0
+ /* unused compile error */
+ fastf_t mag_a;
+#endif
+ fastf_t c, dtol, mag_h, ntol, r1, r2, cprime;
fastf_t **ellipses, theta_prev, theta_new;
int *pts_dbl, face, i, j, nseg;
int jj, na, nb, nell, recalc_b;
@@ -950,7 +961,10 @@
return 1;
}
+#if 0
+ /* unused compile error */
mag_a = MAGSQ(xip->ehy_Au); /* a is unit vector, so |A|^2 == |A| */
+#endif
mag_h = MAGNITUDE(xip->ehy_H);
c = xip->ehy_c;
cprime = c / mag_h;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits