Revision: 45741
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45741&view=rev
Author:   r_weiss
Date:     2011-08-01 14:25:50 +0000 (Mon, 01 Aug 2011)

Log Message:
-----------
Updated file 'edit.c' within the libged library. Fixed some compile 
warnings/errors.

Modified Paths:
--------------
    brlcad/trunk/src/libged/edit.c

Modified: brlcad/trunk/src/libged/edit.c
===================================================================
--- brlcad/trunk/src/libged/edit.c      2011-08-01 02:23:18 UTC (rev 45740)
+++ brlcad/trunk/src/libged/edit.c      2011-08-01 14:25:50 UTC (rev 45741)
@@ -1152,8 +1152,13 @@
 {
     static int idx = 0;
     const int len = 8;
+    struct edit_arg **arg_heads;
+#if 0
     struct edit_arg *arg_heads[len];
+#endif
 
+    arg_heads = (struct edit_arg **)bu_calloc(len, sizeof(struct edit_arg **), 
"arg_heads");
+
     arg_heads[0] = cmd->rotate.objects;
     arg_heads[1] = cmd->rotate.ref_axis.from;
     arg_heads[2] = cmd->rotate.ref_axis.to;
@@ -1237,8 +1242,13 @@
 {
     static int idx = 0;
     const int len = 7;
+    struct edit_arg **arg_heads;
+#if 0
     struct edit_arg *arg_heads[len];
+#endif
 
+    arg_heads = (struct edit_arg **)bu_calloc(len, sizeof(struct edit_arg **), 
"arg_heads");
+
     arg_heads[0] = cmd->scale.objects;
     arg_heads[1] = cmd->scale.ref_scale.from;
     arg_heads[2] = cmd->scale.ref_scale.to;
@@ -1383,8 +1393,13 @@
 {
     static int idx = 0;
     const int len = 4;
+    struct edit_arg **arg_heads;
+#if 0
     struct edit_arg *arg_heads[len];
+#endif
 
+    arg_heads = (struct edit_arg **)bu_calloc(len, sizeof(struct edit_arg **), 
"arg_heads");
+
     arg_heads[0] = cmd->translate.objects;
     arg_heads[1] = cmd->translate.ref_vector.from;
     arg_heads[2] = cmd->translate.ref_vector.to;
@@ -1474,13 +1489,13 @@
 int
 edit(struct ged *gedp, union edit_cmd *const subcmd, const int flags)
 {
-    (void)gedp;
-    (void)subcmd;
-    (void)flags;
     struct edit_arg *arg_head = subcmd->common.objects;
     struct edit_arg *cur_arg = arg_head;
     /* struct edit_arg *prev_arg = NULL; */
     int i;
+    (void)gedp;
+    (void)subcmd;
+    (void)flags;
 #if 0
     int noisy;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to