summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 11:06:06 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 11:06:06 -0800
commitb2d40b9a09ab40482e081a2648cf8f79ff6cc386 (patch)
tree051a3fa17d8b6ce96a8b116cba61fc5c462c9263
parentb71eb0361cf556909d88b59ccdb810a137c1efeb (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.c17
-rw-r--r--utils.h10
2 files changed, 0 insertions, 27 deletions
diff --git a/utils.c b/utils.c
index f7cdddc..43c67ce 100644
--- a/utils.c
+++ b/utils.c
@@ -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;
diff --git a/utils.h b/utils.h
index 8b9ebe0..d4273ef 100644
--- a/utils.h
+++ b/utils.h
@@ -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