This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
error ("") and -Wprintf
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: insight at sources dot redhat dot com
- Date: Sun, 14 Apr 2002 21:20:35 -0400
- Subject: error ("") and -Wprintf
Hello,
I'm getting -Werror -Wprintf warnings from the error("") call in:
msg = Tcl_GetVar (gdbtk_interp, "errorInfo", TCL_GLOBAL_ONLY);
#ifdef _WIN32
MessageBox (NULL, msg, NULL, MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
fprintf (stderr,msg);
#endif
error ("");
}
}
cc1: warnings being treated as errors
/home/scratch/PENDING/2002-04-14-selected-frame-level/src/gdb/gdbtk/generic/gdbtk.c:
In function `gdbtk_init':
/home/scratch/PENDING/2002-04-14-selected-frame-level/src/gdb/gdbtk/generic/gdbtk.c:643:
warning: zero-length format string
gmake[1]: *** [gdbtk.o] Error 1
I'm not sure what the code should be doing. But perhaphs
throw_exception() should be called?
Andrew