This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]