/* Failure for failure, lets try using the external
format anyway..
*/
- pwd_internal=pwd;
+ pwd_internal=(Bufbyte*)pwd;
}
if( pwd_internal == NULL ) {
WITH_DLLIST_TRAVERSE(
eq_queue(eq),
if (!command_event_p((Lisp_Object)dllist_item)) {
- eqev = (Lisp_Object)dllist_pop_inner(eq_queue(eq), _el);
+ void *eqev_p=dllist_pop_inner(eq_queue(eq), _el);
+ eqev = (Lisp_Object)eqev_p;
break;
});
string2, size2); \
DEBUG_PRINT1("'\n"); \
\
- pat = (unsigned char *) POP_FAILURE_POINTER(); \
+ pat = (const unsigned char*)POP_FAILURE_POINTER(); \
DEBUG_PRINT2 (" Popping pattern %p: ", pat); \
DEBUG_PRINT_COMPILED_PATTERN(bufp, pat, pend); \
\
/* fuck, p isnt const thanks to that
* unified range table function below */
#ifdef MULE
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-qual"
p = (unsigned char*)fail_stack.
stack[--fail_stack.avail].pointer;
+#pragma GCC diagnostic pop
#else
p = fail_stack.stack[--fail_stack.avail]
.pointer;
if (!FAIL_STACK_EMPTY()) {
/* A restart point is known. Restore to that state. */
DEBUG_PRINT1("\nFAIL:\n");
- POP_FAILURE_POINT(d, p, lowest_active_reg,
+
+ const unsigned char* cpat = p;
+
+ POP_FAILURE_POINT(d, cpat, lowest_active_reg,
highest_active_reg, regstart, regend,
reg_info);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-qual"
+ p = (unsigned char*)cpat;
+#pragma GCC diagnostic pop
/* If this failure point is a dummy, try the next one. */
if (!p)
int arg2, int arg3, int arg4, int arg5, int arg6, int arg7,
int arg8, int arg9)
{
- char *temp;
size_t slen = len;
- temp = (char *)tparm((char *)string, arg1, arg2, arg3, arg4, arg5, arg6, arg7,
- arg8, arg9);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-qual"
+ char *paramstring = (char *)string;
+ char *temp = (char *)
+ tparm(paramstring, arg1, arg2, arg3, arg4, arg5, arg6, arg7,
+ arg8, arg9);
+#pragma GCC diagnostic pop
+
+
if (outstring == 0) {
slen = strlen(temp)+1;
outstring = (char *)xmalloc_atomic( slen );
{
Display *dpy = get_x_display(device);
int ndirs_return;
- const char **directories =
- (const char **)XGetFontPath(dpy, &ndirs_return);
+ const char * const *directories =
+ (const char * const *)XGetFontPath(dpy, &ndirs_return);
Lisp_Object font_path = Qnil;
if (!directories)
(XtPointer) (XtInputReadMask /* | XtInputExceptMask */ ),
Xt_what_callback, 0);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-qual"
XtAppSetTypeConverter(Xt_app_con, XtRString, XtRPixel,
EmacsXtCvtStringToPixel,
(XtConvertArgList)colorConvertArgs,
2, XtCacheByDisplay, EmacsFreePixel);
+#pragma GCC diagnostic pop
#ifdef XIM_XLIB
XtAppSetTypeConverter(Xt_app_con, XtRString, XtRXimStyles,
while (row >= height)
row =
InterlacedOffset
- [++pass];
+ [++pass];
}
eip =
unwind.eimage +