Revision: 51713
http://brlcad.svn.sourceforge.net/brlcad/?rev=51713&view=rev
Author: d_rossberg
Date: 2012-07-30 12:15:41 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
quell some warnings
Modified Paths:
--------------
rt^3/trunk/include/brlcad/Object.h
rt^3/trunk/src/coreInterface/Arb8.cpp
rt^3/trunk/src/coreInterface/Cone.cpp
rt^3/trunk/src/coreInterface/ConstDatabase.cpp
rt^3/trunk/src/coreInterface/FileDatabase.cpp
rt^3/trunk/src/coreInterface/Halfspace.cpp
rt^3/trunk/src/coreInterface/MemoryDatabase.cpp
rt^3/trunk/src/coreInterface/Object.cpp
Modified: rt^3/trunk/include/brlcad/Object.h
===================================================================
--- rt^3/trunk/include/brlcad/Object.h 2012-07-30 12:12:05 UTC (rev 51712)
+++ rt^3/trunk/include/brlcad/Object.h 2012-07-30 12:15:41 UTC (rev 51713)
@@ -30,6 +30,8 @@
#ifndef BRLCAD_OBJECT_INCLUDED
#define BRLCAD_OBJECT_INCLUDED
+#include <cstddef>
+
#include <brlcad/cicommon.h>
Modified: rt^3/trunk/src/coreInterface/Arb8.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/Arb8.cpp 2012-07-30 12:12:05 UTC (rev
51712)
+++ rt^3/trunk/src/coreInterface/Arb8.cpp 2012-07-30 12:15:41 UTC (rev
51713)
@@ -642,7 +642,8 @@
}
break;
- // case FT_Degenerated: nothing has to be checked
+ default:;
+ // case FT_Degenerated: nothing has to be checked
}
}
Modified: rt^3/trunk/src/coreInterface/Cone.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/Cone.cpp 2012-07-30 12:12:05 UTC (rev
51712)
+++ rt^3/trunk/src/coreInterface/Cone.cpp 2012-07-30 12:15:41 UTC (rev
51713)
@@ -433,7 +433,6 @@
bool Cone::IsValid(void) const throw(){
bool ret = false;
- double workScal = 0;
const rt_tgc_internal* internalp = Internal();
double magA = MAGNITUDE(internalp->a);
double magB = MAGNITUDE(internalp->b);
Modified: rt^3/trunk/src/coreInterface/ConstDatabase.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/ConstDatabase.cpp 2012-07-30 12:12:05 UTC
(rev 51712)
+++ rt^3/trunk/src/coreInterface/ConstDatabase.cpp 2012-07-30 12:15:41 UTC
(rev 51713)
@@ -61,8 +61,8 @@
static int NullLogger
(
- genptr_t data,
- genptr_t string
+ genptr_t UNUSED(data),
+ genptr_t UNUSED(string)
) {
return 0;
}
@@ -658,7 +658,7 @@
(
application* ap,
partition* partitionHead,
- seg* segment
+ seg* UNUSED(segment)
) {
ConstDatabase::HitCallback* callback =
static_cast<ConstDatabase::HitCallback*>(ap->a_uptr);
@@ -679,7 +679,8 @@
HitCallback& callback
) const {
if (!SelectionIsEmpty()) {
- application ap = {0};
+ application ap;
+ RT_APPLICATION_INIT(&ap);
ap.a_hit = HitDo;
ap.a_miss = 0;
Modified: rt^3/trunk/src/coreInterface/FileDatabase.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/FileDatabase.cpp 2012-07-30 12:12:05 UTC
(rev 51712)
+++ rt^3/trunk/src/coreInterface/FileDatabase.cpp 2012-07-30 12:15:41 UTC
(rev 51713)
@@ -27,11 +27,11 @@
* IABG mbH (Germany)
*/
+#include "raytrace.h"
+
#include <brlcad/FileDatabase.h>
-#include "raytrace.h"
-
using namespace BRLCAD;
Modified: rt^3/trunk/src/coreInterface/Halfspace.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/Halfspace.cpp 2012-07-30 12:12:05 UTC (rev
51712)
+++ rt^3/trunk/src/coreInterface/Halfspace.cpp 2012-07-30 12:15:41 UTC (rev
51713)
@@ -151,7 +151,7 @@
if (ret) {
double length = MAGNITUDE(Internal()->eqn);
- if (MAGNITUDE(Internal()->eqn) <= VDIVIDE_TOL) // or has it to be 1?
+ if (length <= VDIVIDE_TOL) // or has it to be 1?
ret = false;
}
Modified: rt^3/trunk/src/coreInterface/MemoryDatabase.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/MemoryDatabase.cpp 2012-07-30 12:12:05 UTC
(rev 51712)
+++ rt^3/trunk/src/coreInterface/MemoryDatabase.cpp 2012-07-30 12:15:41 UTC
(rev 51713)
@@ -29,11 +29,11 @@
#include <cassert>
+#include "raytrace.h"
+
#include <brlcad/MemoryDatabase.h>
-#include "raytrace.h"
-
using namespace BRLCAD;
Modified: rt^3/trunk/src/coreInterface/Object.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/Object.cpp 2012-07-30 12:12:05 UTC (rev
51712)
+++ rt^3/trunk/src/coreInterface/Object.cpp 2012-07-30 12:15:41 UTC (rev
51713)
@@ -121,7 +121,7 @@
rt_clean_resource_complete(0, m_resp);
bu_free(m_resp, "BRLCAD::Object::~Object::m_resp");
}
-};
+}
void Object::Destroy(void) throw() {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits