Revision: 45574
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45574&view=rev
Author:   erikgreenwald
Date:     2011-07-22 13:41:17 +0000 (Fri, 22 Jul 2011)

Log Message:
-----------
GCC 4.1 has a bug where a variable set in every condition of a switch still 
registers as possibly uninitialized, so set it to 0 on definition (seen on 
rhel5).

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

Modified: brlcad/trunk/src/libged/edit.c
===================================================================
--- brlcad/trunk/src/libged/edit.c      2011-07-22 12:28:24 UTC (rev 45573)
+++ brlcad/trunk/src/libged/edit.c      2011-07-22 13:41:17 UTC (rev 45574)
@@ -1251,7 +1251,7 @@
     union edit_cmd subcmd;
     struct edit_arg *cur_arg = &subcmd.cmd_line.args;
     int idx_cur_opt = 0; /* pos in options array for current arg */
-    int conv_flags; /* for edit_strs_to_arg */
+    int conv_flags = 0; /* for edit_strs_to_arg */
     static const char * const usage = "[subcommand] [args]";
     int i; /* iterator */
     int c; /* for bu_getopt */


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

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to