Revision: 42097
http://brlcad.svn.sourceforge.net/brlcad/?rev=42097&view=rev
Author: brlcad
Date: 2011-01-11 22:52:59 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
mark a bunch of unused params
Modified Paths:
--------------
brlcad/trunk/src/adrt/adrt_struct.h
brlcad/trunk/src/adrt/librender/component.c
brlcad/trunk/src/adrt/librender/cut.c
brlcad/trunk/src/adrt/librender/depth.c
brlcad/trunk/src/adrt/librender/flat.c
brlcad/trunk/src/adrt/librender/flos.c
brlcad/trunk/src/adrt/librender/grid.c
brlcad/trunk/src/adrt/librender/hit.c
brlcad/trunk/src/adrt/librender/normal.c
brlcad/trunk/src/adrt/librender/path.c
brlcad/trunk/src/adrt/librender/phong.c
brlcad/trunk/src/adrt/librender/render_util.c
brlcad/trunk/src/adrt/librender/spall.c
Modified: brlcad/trunk/src/adrt/adrt_struct.h
===================================================================
--- brlcad/trunk/src/adrt/adrt_struct.h 2011-01-11 22:37:27 UTC (rev 42096)
+++ brlcad/trunk/src/adrt/adrt_struct.h 2011-01-11 22:52:59 UTC (rev 42097)
@@ -27,7 +27,7 @@
#define _ADRT_STRUCT_H
#ifdef TIE_PRECISION
-# if TIE_PRECISION != TIE_SINGLE_PRECISION
+# if defined(TIE_SINGLE_PRECISION) && TIE_PRECISION != TIE_SINGLE_PRECISION
# error "Need single floating point precision out of tie"
# endif
#else
Modified: brlcad/trunk/src/adrt/librender/component.c
===================================================================
--- brlcad/trunk/src/adrt/librender/component.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/component.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -27,13 +27,13 @@
#include "adrt_struct.h"
void
-render_component_free(render_t *render)
+render_component_free(render_t *UNUSED(render))
{
return;
}
static void *
-component_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr)
+component_hit(struct tie_ray_s *ray, struct tie_id_s *UNUSED(id), struct
tie_tri_s *tri, void *UNUSED(ptr))
{
adrt_mesh_t *mesh = (adrt_mesh_t *)(tri->ptr);
@@ -42,7 +42,7 @@
}
void
-render_component_work(render_t *render, struct tie_s *tie, struct tie_ray_s
*ray, TIE_3 *pixel)
+render_component_work(render_t *UNUSED(render), struct tie_s *tie, struct
tie_ray_s *ray, TIE_3 *pixel)
{
struct tie_id_s id;
adrt_mesh_t *mesh;
@@ -68,7 +68,7 @@
}
int
-render_component_init(render_t *render, const char *usr) {
+render_component_init(render_t *render, const char *UNUSED(usr)) {
render->work = render_component_work;
render->free = render_component_free;
return 0;
Modified: brlcad/trunk/src/adrt/librender/cut.c
===================================================================
--- brlcad/trunk/src/adrt/librender/cut.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/cut.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -54,7 +54,7 @@
} render_cut_hit_t;
void *
-render_cut_hit_cutline(struct tie_ray_s *ray, struct tie_id_s *id, struct
tie_tri_s *tri, void *ptr)
+render_cut_hit_cutline(struct tie_ray_s *UNUSED(ray), struct tie_id_s
*UNUSED(id), struct tie_tri_s *tri, void *UNUSED(ptr))
{
((adrt_mesh_t *)(tri->ptr))->flags |= ADRT_MESH_HIT;
return NULL;
@@ -74,14 +74,14 @@
static void *
-render_arrow_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr)
+render_arrow_hit(struct tie_ray_s *UNUSED(ray), struct tie_id_s *UNUSED(id),
struct tie_tri_s *tri, void *UNUSED(ptr))
{
return tri;
}
void *
-render_cut_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr)
+render_cut_hit(struct tie_ray_s *UNUSED(ray), struct tie_id_s *id, struct
tie_tri_s *tri, void *ptr)
{
render_cut_hit_t *hit = (render_cut_hit_t *)ptr;
@@ -92,7 +92,7 @@
void
-render_cut_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel)
+render_cut_work(render_t *render, struct tie_s *tiep, struct tie_ray_s *ray,
TIE_3 *pixel)
{
render_cut_t *rd;
render_cut_hit_t hit;
@@ -136,7 +136,7 @@
HMOVE(hit.plane, rd->plane);
/* Render Geometry */
- if (!tie_work(tie, ray, &id, render_cut_hit, &hit))
+ if (!tie_work(tiep, ray, &id, render_cut_hit, &hit))
return;
/*
Modified: brlcad/trunk/src/adrt/librender/depth.c
===================================================================
--- brlcad/trunk/src/adrt/librender/depth.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/depth.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -26,13 +26,13 @@
void
-render_depth_free(render_t *render)
+render_depth_free(render_t *UNUSED(render))
{
return;
}
void
-render_depth_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel)
+render_depth_work(render_t *UNUSED(render), struct tie_s *tie, struct
tie_ray_s *ray, TIE_3 *pixel)
{
struct tie_id_s id;
adrt_mesh_t *mesh;
@@ -43,7 +43,7 @@
}
int
-render_depth_init(render_t *render, const char *usr)
+render_depth_init(render_t *render, const char *UNUSED(usr))
{
render->work = render_depth_work;
render->free = render_depth_free;
Modified: brlcad/trunk/src/adrt/librender/flat.c
===================================================================
--- brlcad/trunk/src/adrt/librender/flat.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/flat.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -26,12 +26,12 @@
void
-render_flat_free(render_t *render)
+render_flat_free(render_t *UNUSED(render))
{
}
void
-render_flat_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel)
+render_flat_work(render_t *UNUSED(render), struct tie_s *tie, struct tie_ray_s
*ray, TIE_3 *pixel)
{
struct tie_id_s id;
adrt_mesh_t *mesh;
@@ -44,7 +44,7 @@
}
int
-render_flat_init(render_t *render, const char *usr)
+render_flat_init(render_t *render, const char *UNUSED(usr))
{
render->work = render_flat_work;
render->free = render_flat_free;
Modified: brlcad/trunk/src/adrt/librender/flos.c
===================================================================
--- brlcad/trunk/src/adrt/librender/flos.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/flos.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -37,7 +37,7 @@
} render_flos_t;
-void render_flos_free(render_t *render) {
+void render_flos_free(render_t *UNUSED(render)) {
}
void render_flos_work(render_t *render, struct tie_s *tie, struct tie_ray_s
*ray, TIE_3 *pixel) {
Modified: brlcad/trunk/src/adrt/librender/grid.c
===================================================================
--- brlcad/trunk/src/adrt/librender/grid.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/grid.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -29,12 +29,12 @@
void
-render_grid_free(render_t *render)
+render_grid_free(render_t *UNUSED(render))
{
}
void
-render_grid_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel)
+render_grid_work(render_t *UNUSED(render), struct tie_s *tie, struct tie_ray_s
*ray, TIE_3 *pixel)
{
struct tie_id_s id;
adrt_mesh_t *m;
@@ -68,7 +68,7 @@
}
int
-render_grid_init(render_t *render, const char *usr)
+render_grid_init(render_t *render, const char *UNUSED(usr))
{
render->work = render_grid_work;
render->free = render_grid_free;
Modified: brlcad/trunk/src/adrt/librender/hit.c
===================================================================
--- brlcad/trunk/src/adrt/librender/hit.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/hit.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -24,7 +24,7 @@
#include "adrt_struct.h"
-void* render_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr) {
+void* render_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *UNUSED(ptr)) {
/* Flip normal to face ray origin (via dot product check) */
if (ray->dir[0] * id->norm[0] + ray->dir[1] * id->norm[1] + ray->dir[2] *
id->norm[2] > 0)
VSCALE(id->norm, id->norm, -1.0);
Modified: brlcad/trunk/src/adrt/librender/normal.c
===================================================================
--- brlcad/trunk/src/adrt/librender/normal.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/normal.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -25,17 +25,17 @@
#include "adrt_struct.h"
void
-render_normal_free(render_t *render) {
+render_normal_free(render_t *UNUSED(render)) {
return;
}
static void *
-normal_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s *tri,
void *ptr) {
+normal_hit(struct tie_ray_s *UNUSED(ray), struct tie_id_s *UNUSED(id), struct
tie_tri_s *tri, void *UNUSED(ptr)) {
return (adrt_mesh_t *)(tri->ptr);
}
void
-render_normal_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel) {
+render_normal_work(render_t *UNUSED(render), struct tie_s *tie, struct
tie_ray_s *ray, TIE_3 *pixel) {
struct tie_id_s id;
float one[3] = { 1, 1, 1 };
@@ -45,7 +45,7 @@
}
int
-render_normal_init(render_t *render, const char *usr) {
+render_normal_init(render_t *render, const char *UNUSED(usr)) {
render->work = render_normal_work;
render->free = render_normal_free;
return 0;
Modified: brlcad/trunk/src/adrt/librender/path.c
===================================================================
--- brlcad/trunk/src/adrt/librender/path.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/path.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -82,7 +82,7 @@
/* Terminate if depth is too great. */
while (propogate) {
if ((new_mesh = (adrt_mesh_t *)tie_work(tie, &new_ray, &new_id,
render_hit, NULL)) && new_ray.depth < RENDER_MAX_DEPTH) {
- if (new_mesh->attributes->ior != 1.0) {
+ if (!EQUAL(new_mesh->attributes->ior, 1.0)) {
/* Refractive Caustic */
/* Deal with refractive-fu */
} else if (new_mesh->attributes->emission > 0.0) {
Modified: brlcad/trunk/src/adrt/librender/phong.c
===================================================================
--- brlcad/trunk/src/adrt/librender/phong.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/phong.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -28,13 +28,13 @@
#include "adrt_struct.h"
void
-render_phong_free(render_t *render)
+render_phong_free(render_t *UNUSED(render))
{
return;
}
void
-render_phong_work(render_t *render, struct tie_s *tie, struct tie_ray_s *ray,
TIE_3 *pixel)
+render_phong_work(render_t *UNUSED(render), struct tie_s *tie, struct
tie_ray_s *ray, TIE_3 *pixel)
{
struct tie_id_s id;
adrt_mesh_t *mesh;
@@ -55,7 +55,7 @@
}
int
-render_phong_init(render_t *render, const char *usr)
+render_phong_init(render_t *render, const char *UNUSED(usr))
{
render->work = render_phong_work;
render->free = render_phong_free;
Modified: brlcad/trunk/src/adrt/librender/render_util.c
===================================================================
--- brlcad/trunk/src/adrt/librender/render_util.c 2011-01-11 22:37:27 UTC
(rev 42096)
+++ brlcad/trunk/src/adrt/librender/render_util.c 2011-01-11 22:52:59 UTC
(rev 42097)
@@ -46,7 +46,7 @@
/* Generate vector list for a spall cone given a reference angle */
-void render_util_spall_vec(vect_t dir, fastf_t angle, int vec_num, vect_t
*vec_list) {
+void render_util_spall_vec(vect_t UNUSED(dir), fastf_t UNUSED(angle), int
UNUSED(vec_num), vect_t *UNUSED(vec_list)) {
#if 0
TIE_3 vec;
tfloat radius, t;
@@ -174,7 +174,7 @@
}
-void render_util_spall_list(struct tie_s *tie, struct tie_ray_s *ray, tfloat
angle, void **data, int *dlen) {
+void render_util_spall_list(struct tie_s *UNUSED(tie), struct tie_ray_s
*UNUSED(ray), tfloat UNUSED(angle), void **UNUSED(data), int *UNUSED(dlen)) {
#if 0
shotline_t shotline;
struct tie_ray_s sray;
Modified: brlcad/trunk/src/adrt/librender/spall.c
===================================================================
--- brlcad/trunk/src/adrt/librender/spall.c 2011-01-11 22:37:27 UTC (rev
42096)
+++ brlcad/trunk/src/adrt/librender/spall.c 2011-01-11 22:52:59 UTC (rev
42097)
@@ -63,14 +63,14 @@
static void *
-render_arrow_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr)
+render_arrow_hit(struct tie_ray_s *UNUSED(ray), struct tie_id_s *UNUSED(id),
struct tie_tri_s *tri, void *UNUSED(ptr))
{
return tri;
}
void *
-render_spall_hit(struct tie_ray_s *ray, struct tie_id_s *id, struct tie_tri_s
*tri, void *ptr)
+render_spall_hit(struct tie_ray_s *UNUSED(ray), struct tie_id_s *id, struct
tie_tri_s *tri, void *ptr)
{
struct render_spall_hit_s *hit = (struct render_spall_hit_s *)ptr;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits