Hello,
I was trying to compile the latest BRL-CAD source from SVN and I ran into a
couple of compile errors. I attach a patch to this e-mail with the fixes I
made to get it to compile. This needs to be reviewed by someone else as I'm
not familiar with the source modules in question.

Regards,

-- 
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
Index: src/conv/k-g.cpp
===================================================================
--- src/conv/k-g.cpp	(revision 68926)
+++ src/conv/k-g.cpp	(working copy)
@@ -272,7 +272,7 @@
 		std::string remainder = line.substr(i,incr);
 		if (remainder.find_first_not_of(" \t\n\v\f\r") == std::string::npos) {
 		    std::getline(infile, line);
-		    while (line.c_str()[0] == '$' && !line.c_str()[0] == '$') {
+		    while (line.c_str()[0] == '$') {
 			std::getline(infile, line);
 		    };
 		    i = 0;
@@ -445,7 +445,7 @@
     } else {
 	bu_vls_sprintf(&sname, "uncategorized.bot");
     }
-    mk_bot(fd_out, bu_vls_addr(&sname), RT_BOT_SURFACE, RT_BOT_UNORIENTED, NULL, NIDs.size(), eind, bot_vertices, bot_faces, NULL, NULL);
+    mk_bot(fd_out, bu_vls_addr(&sname), RT_BOT_SURFACE, RT_BOT_UNORIENTED, 0, NIDs.size(), eind, bot_vertices, bot_faces, NULL, NULL);
     /* Add the BoT to the parent Comb*/
     (void)mk_addmember(bu_vls_addr(&sname), &(*head).l, NULL, WMOP_UNION);
 
@@ -522,7 +522,7 @@
 
     struct bu_vls sname = BU_VLS_INIT_ZERO;
     bu_vls_sprintf(&sname, "%ld.bot", pid);
-    mk_bot(fd_out, bu_vls_addr(&sname), RT_BOT_SURFACE, RT_BOT_UNORIENTED, NULL, NIDs.size(), EIDs.size() * 2, bot_vertices, bot_faces, NULL, NULL);
+    mk_bot(fd_out, bu_vls_addr(&sname), RT_BOT_SURFACE, RT_BOT_UNORIENTED, 0, NIDs.size(), EIDs.size() * 2, bot_vertices, bot_faces, NULL, NULL);
     /* Add the BoT to the parent Comb*/
     (void)mk_addmember(bu_vls_addr(&sname), &(*head).l, NULL, WMOP_UNION);
     bu_vls_free(&sname);
Index: src/libbu/color.c
===================================================================
--- src/libbu/color.c	(revision 68926)
+++ src/libbu/color.c	(working copy)
@@ -290,7 +290,7 @@
 bu_color_from_str(struct bu_color *color, const char *str)
 {
     size_t i;
-    char separator;
+    char separator = '\0';
     int mode = 0;
 
     BU_COLOR_INIT(color);
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to