Do nothing if MATRIX' size, position, vscroll, and marginal areas
haven't changed. This optimization is important because preserving
the matrix means preventing redisplay. */
+ eassert (w != NULL || matrix->pool != NULL);
if (matrix->pool == NULL)
{
left = margin_glyphs_to_reserve (w, dim.width, w->left_margin_cols);
which will cause a warning for %lld etc. */
# if defined __MINGW32__ \
&& (!defined __USE_MINGW_ANSI_STDIO \
- || !(GNUC_PREREQ (6, 0, 0) && __MINGW32_MAJOR_VERSION >= 5))
+ || (!defined MINGW_W64 \
+ && !(GNUC_PREREQ (6, 0, 0) && __MINGW32_MAJOR_VERSION >= 5)))
# define pI "I64"
# else /* ! MinGW */
# define pI "ll"
if (verbose) \
{ \
printf ("%s\n", (message)); \
- printf ("\t0x%"pDWP" Offset in input file.\n", s - p_infile->file_base); \
- printf ("\t0x%"pDWP" Offset in output file.\n", dst - p_outfile->file_base); \
+ printf ("\t0x%"pDWP" Offset in input file.\n", (DWORD_PTR)(s - p_infile->file_base)); \
+ printf ("\t0x%"pDWP" Offset in output file.\n", (DWORD_PTR)(dst - p_outfile->file_base)); \
printf ("\t0x%"pDWP" Size in bytes.\n", count); \
} \
memcpy (dst, s, count); \
printf ("%s\n", (message)); \
printf ("\t0x%p Address in process.\n", s); \
printf ("\t0x%p Base output file.\n", p_outfile->file_base); \
- printf ("\t0x%"pDWP" Offset in output file.\n", dst - p_outfile->file_base); \
+ printf ("\t0x%"pDWP" Offset in output file.\n", (DWORD_PTR)(dst - p_outfile->file_base)); \
printf ("\t0x%p Address in output file.\n", dst); \
printf ("\t0x%"pDWP" Size in bytes.\n", count); \
} \
if (w32_alloc_lighter_color (f, &pixel, factor, delta))
xgcv.foreground = relief->pixel = pixel;
+ xgcv.font = NULL; /* avoid compiler warnings */
if (relief->gc == 0)
{
#if 0 /* TODO: stipple */
static Lisp_Object
construct_mouse_click (struct input_event *result, W32Msg *msg, struct frame *f)
{
- int button;
- int up;
+ int button = 0;
+ int up = 0;
parse_button (msg->msg.message, HIWORD (msg->msg.wParam),
&button, &up);
/* If we decide we want to generate an event to be seen
by the rest of Emacs, we put it here. */
bool tool_bar_p = 0;
- int button;
- int up;
+ int button = 0;
+ int up = 0;
f = (x_mouse_grabbed (dpyinfo) ? dpyinfo->last_mouse_frame
: x_window_to_frame (dpyinfo, msg.msg.hwnd));