aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-08-04 12:04:02 +0100
committerGary Benson <gbenson@redhat.com>2014-08-29 10:53:35 +0100
commite3d6ba5d322d871004e84b936e6509749a350325 (patch)
tree975cbc463db136ec939958962a4947b17832c568 /gdb/utils.c
parent075c703382f5bed4ec0976dd11f3b5b694ce3cb1 (diff)
downloadgdb-e3d6ba5d322d871004e84b936e6509749a350325.zip
gdb-e3d6ba5d322d871004e84b936e6509749a350325.tar.gz
gdb-e3d6ba5d322d871004e84b936e6509749a350325.tar.bz2
Move internal_{,v}warning to common/errors.[ch]
This commit moves internal_warning and internal_vwarning into common/errors.[ch]. gdb/ChangeLog: * common/errors.h (internal_warning): New declaration. (internal_vwarning): Likewise. * common/errors.c (internal_warning): New function. * utils.h (internal_warning): Don't declare. (internal_vwarning): Likewise. * utils.c (internal_warning): Removed. gdb/gdbserver/ChangeLog: * utils.c (internal_vwarning): New function.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 9785a61..4da9501 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -823,16 +823,6 @@ internal_vwarning (const char *file, int line, const char *fmt, va_list ap)
internal_vproblem (&internal_warning_problem, file, line, fmt, ap);
}
-void
-internal_warning (const char *file, int line, const char *string, ...)
-{
- va_list ap;
-
- va_start (ap, string);
- internal_vwarning (file, line, string, ap);
- va_end (ap);
-}
-
static struct internal_problem demangler_warning_problem = {
"demangler-warning", 1, internal_problem_ask, 0, internal_problem_no
};