const unsigned char *add_stuff = NULL;
ptrdiff_t add_len = 0;
ptrdiff_t idx = -1;
- ptrdiff_t begbyte;
+ ptrdiff_t begbyte UNINIT;
if (str_multibyte)
{
int width, int height, int *root_x, int *root_y)
{
Lisp_Object left, top, right, bottom;
- int min_x, min_y, max_x, max_y;
+ int min_x = 0, min_y, max_x = 0, max_y;
/* User-specified position? */
left = Fcdr (Fassq (Qleft, parms));
OPENFILENAMEA * file_details_a = &new_file_details_a.details;
int use_unicode = w32_unicode_filenames;
wchar_t *prompt_w;
- char *prompt_a;
+ char *prompt_a UNINIT;
int len;
char fname_ret[MAX_UTF8_PATH];
#endif /* NTGUI_UNICODE */
{
/* Copied from Fdefine_key and store_in_keymap. */
register Lisp_Object c;
- int vk_code;
- int lisp_modifiers;
+ int vk_code = 0;
+ int lisp_modifiers = 0;
int w32_modifiers;
Lisp_Object res = Qnil;
char* vkname;
int i;
HFONT old_font = NULL;
HDC dc = NULL;
- struct frame * f;
+ struct frame * f UNINIT;
int total_width = 0;
WORD *wcode;
SIZE size;
HMENU menubar_widget = f->output_data.w32->menubar_widget;
Lisp_Object items;
widget_value *wv, *first_wv, *prev_wv = 0;
- int i, last_i;
+ int i, last_i = 0;
int *submenu_start, *submenu_end;
int *submenu_top_level_items, *submenu_n_panes;
thickness = font->underline_thickness;
else
thickness = 1;
- if (x_underline_at_descent_line)
+ if (x_underline_at_descent_line || !font)
position = (s->height - thickness) - (s->ybase - s->y);
else
{
ROUND (x) = floor (x + 0.5) */
if (x_use_underline_position_properties
- && font && font->underline_position >= 0)
+ && font->underline_position >= 0)
position = font->underline_position;
- else if (font)
+ else
position = (font->descent + 1) / 2;
}
position = max (position, underline_minimum_offset);