summaryrefslogtreecommitdiff
path: root/src/tet3/servlib/sdsnrm.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2010-04-18 12:51:14 -0700
committerAaron Plattner <aplattner@nvidia.com>2010-04-18 13:46:08 -0700
commitff1c7e45597d2d9a5c096dc1617ce84be14a02c6 (patch)
treee5d22cae0293b05b604c6e0514cba16e3f9d0bc2 /src/tet3/servlib/sdsnrm.c
parentca4d3f8f0be2300b6d370a2c141bc266d266405e (diff)
tet: Fix "srcFile defined but not used" warnings.
These global arrays are used by the error-reporting macros to define the source file. I guess it's because using __FILE__ everywhere generated tons of copies of the file path in .data on ancient compilers. Nowadays, they end up with only one copy in .rodata. To facilitate that, make the arguments to the error reporting functions const. Propagate constness to eliminate additional warnings. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/tet3/servlib/sdsnrm.c')
-rw-r--r--src/tet3/servlib/sdsnrm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tet3/servlib/sdsnrm.c b/src/tet3/servlib/sdsnrm.c
index b399a24c..fb0ba631 100644
--- a/src/tet3/servlib/sdsnrm.c
+++ b/src/tet3/servlib/sdsnrm.c
@@ -44,10 +44,6 @@ MODIFICATIONS:
#include "servlib.h"
#include "dtetlib.h"
-#ifdef NEEDsrcFile
-static char srcFile[] = __FILE__; /* file name for error reporting */
-#endif
-
/*
** tet_sdsnrm() - remove a sync ID
**