Revision: 45540
http://brlcad.svn.sourceforge.net/brlcad/?rev=45540&view=rev
Author: bhinesley
Date: 2011-07-19 17:18:29 +0000 (Tue, 19 Jul 2011)
Log Message:
-----------
removed unused variables and quiet compiler
Modified Paths:
--------------
brlcad/trunk/src/libbu/bomb.c
brlcad/trunk/src/libbu/crashreport.c
Modified: brlcad/trunk/src/libbu/bomb.c
===================================================================
--- brlcad/trunk/src/libbu/bomb.c 2011-07-19 13:41:06 UTC (rev 45539)
+++ brlcad/trunk/src/libbu/bomb.c 2011-07-19 17:18:29 UTC (rev 45540)
@@ -108,9 +108,8 @@
fd = open("/dev/tty", 1);
if (LIKELY(fd > 0)) {
if (str && (strlen(str) > 0)) {
- int ret;
- ret = write(fd, str, strlen(str));
- ret = write(fd, "\n", 1);
+ (void)write(fd, str, strlen(str));
+ (void)write(fd, "\n", 1);
}
close(fd);
}
@@ -155,8 +154,7 @@
fd = open("/dev/tty", 1);
if (LIKELY(fd > 0)) {
- int ret;
- ret = write(fd, "Causing intentional core dump due to debug
flag\n", 48);
+ (void)write(fd, "Causing intentional core dump due to debug
flag\n", 48);
close(fd);
}
abort(); /* should dump if ulimit is non-zero */
Modified: brlcad/trunk/src/libbu/crashreport.c
===================================================================
--- brlcad/trunk/src/libbu/crashreport.c 2011-07-19 13:41:06 UTC (rev
45539)
+++ brlcad/trunk/src/libbu/crashreport.c 2011-07-19 17:18:29 UTC (rev
45540)
@@ -107,8 +107,7 @@
fprintf(fp, "\nSystem characteristics:\n");
fflush(fp);
while (bu_fgets(buffer, CR_BUFSIZE, popenfp)) {
- int ret;
- ret = fwrite(buffer, 1, strlen(buffer), fp);
+ (void)fwrite(buffer, 1, strlen(buffer), fp);
}
}
#if defined(HAVE_POPEN) && !defined(STRICT_FLAGS)
@@ -134,11 +133,10 @@
fprintf(fp, "\nSystem information:\n");
fflush(fp);
while (bu_fgets(buffer, CR_BUFSIZE, popenfp)) {
- int ret;
if ((strlen(buffer) == 0) || ((strlen(buffer) == 1) &&
(buffer[0] == '\n'))) {
continue;
}
- ret = fwrite(buffer, 1, strlen(buffer), fp);
+ (void)fwrite(buffer, 1, strlen(buffer), fp);
}
}
#if defined(HAVE_POPEN) && !defined(STRICT_FLAGS)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits