[Python-checkins] r87933 - python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/runtest.c
stefan.krah
python-checkins at python.org
Tue Jan 11 15:52:18 CET 2011
Author: stefan.krah
Date: Tue Jan 11 15:52:18 2011
New Revision: 87933
Log:
Get rid of several 'unused' warnings.
Modified:
python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/runtest.c
Modified: python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/runtest.c
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/runtest.c (original)
+++ python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/runtest.c Tue Jan 11 15:52:18 2011
@@ -3917,14 +3917,6 @@
check_equalmem(tmp, op, token[0]);
}
-/* unused for now */
-static inline void
-add_clarification(char *filename)
-{
- filename = NULL;
- return;
-}
-
/* process a file */
static void
@@ -3935,7 +3927,7 @@
char *line;
char *tmpline;
char *token[MAXTOKEN+1];
- uint32_t testno = 0;
+ uint32_t testno;
mpd_ssize_t l;
@@ -3959,8 +3951,6 @@
mpd_err_fatal("out of memory");
}
- add_clarification(filename);
-
while (fgets(line, MAXLINE+1, file) != NULL) {
@@ -4095,6 +4085,7 @@
* - testno can be used for setting a watchpoint in the debugger
*/
testno = get_testno(token[0]);
+ (void)testno;
/* The id is in the skip list */
if (check_skip(token[0])) {
More information about the Python-checkins
mailing list