diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-27 11:06:06 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-27 11:06:06 -0800 |
commit | b2d40b9a09ab40482e081a2648cf8f79ff6cc386 (patch) | |
tree | 051a3fa17d8b6ce96a8b116cba61fc5c462c9263 | |
parent | b71eb0361cf556909d88b59ccdb810a137c1efeb (diff) |
Delete unused uFatalError function
Stops gcc from suggesting to add noreturn attribute to it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | utils.c | 17 | ||||
-rw-r--r-- | utils.h | 10 |
2 files changed, 0 insertions, 27 deletions
@@ -217,23 +217,6 @@ uError(const char *s,...) /***====================================================================***/ void -uFatalError(const char *s,...) -{ - va_list ap; - - va_start(ap, s); - fprintf(errorFile,"Fatal Error: "); - vfprintf(errorFile,s,ap); - fprintf(errorFile," Exiting\n"); - fflush(errorFile); - va_end(ap); - exit(1); - /* NOTREACHED */ -} - -/***====================================================================***/ - -void uInternalError(const char *s,...) { va_list ap; @@ -92,7 +92,6 @@ extern void uInformation ( const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2); extern void uAction ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2); extern void uWarning ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2); extern void uError ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2); -extern void uFatalError( const char *s,...) _X_ATTRIBUTE_PRINTF(1,2); extern void uInternalError ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2); /***====================================================================***/ @@ -121,15 +120,6 @@ extern int uStrCasePrefix( /***====================================================================***/ -#ifdef ASSERTIONS_ON -#define uASSERT(where,why) \ - {if (!(why)) uFatalError("assertion botched in %s ( why )\n",where);} -#else -#define uASSERT(where,why) -#endif - -/***====================================================================***/ - #ifndef DEBUG_VAR #define DEBUG_VAR debugFlags #endif |