dtprintinfo: Resolve uninitialized warnings
This commit is contained in:
committed by
Jon Trulson
parent
284c760616
commit
3600e87527
@@ -42,7 +42,7 @@ ComboBoxObj::ComboBoxObj(MotifUI *parent, ComboBoxCallback callback,
|
||||
: MotifUI(parent, name, NULL)
|
||||
{
|
||||
XmString *items_list;
|
||||
int itemCount;
|
||||
int itemCount = 0;
|
||||
if (items && n_items)
|
||||
{
|
||||
items_list = new XmString [n_items];
|
||||
|
||||
@@ -247,7 +247,7 @@ Dialog::Dialog(MotifUI *parent, char *title, char *caption, boolean editable,
|
||||
Arg args[8];
|
||||
int n;
|
||||
XmString xm_string = StringCreate(title);
|
||||
XmString xm_message;
|
||||
XmString xm_message = NULL;
|
||||
Pixmap pixmap;
|
||||
|
||||
_dialog_type = PROMPT_DIALOG;
|
||||
|
||||
@@ -1056,7 +1056,7 @@ CalculateSize(
|
||||
Window junkwin;
|
||||
int x, y;
|
||||
Boolean show_fields = False;
|
||||
Dimension _width;
|
||||
Dimension _width = 0;
|
||||
|
||||
if (query_geometry)
|
||||
{
|
||||
@@ -1361,7 +1361,7 @@ CalculateSize(
|
||||
XSetClipOrigin(XtDisplay(w), MaskStippleGC(w), PixmapX(w), PixmapY(w));
|
||||
if (StatePixmap(w) != XmUNSPECIFIED_PIXMAP)
|
||||
{
|
||||
Dimension x_offset, y_offset;
|
||||
Dimension x_offset = 0, y_offset = 0;
|
||||
|
||||
XGetGeometry(XtDisplay(w), StatePixmap(w), &junkwin,
|
||||
(int *) &junk, (int *) &junk, &width, &height, &junk, &junk);
|
||||
@@ -2001,7 +2001,7 @@ QueryGeometry(
|
||||
XtWidgetGeometry *desired
|
||||
)
|
||||
{
|
||||
Dimension width, width1, height, height1;
|
||||
Dimension width = 0, width1, height = 0, height1;
|
||||
Boolean show_fields = False;
|
||||
|
||||
width1 = Max(TopLabelWidth(w), BottomLabelWidth(w));
|
||||
|
||||
@@ -68,15 +68,15 @@ void IconObj::CreateIconObj(MotifUI *parent, char *name, char * /*category*/,
|
||||
char *iconFile, char *details, char *topString,
|
||||
char *bottomString, IconFields _fields)
|
||||
{
|
||||
Pixmap pixmap;
|
||||
Pixmap mask;
|
||||
Pixmap pixmap = XmUNSPECIFIED_PIXMAP;
|
||||
Pixmap mask = XmUNSPECIFIED_PIXMAP;
|
||||
Pixel bg;
|
||||
Widget p, super_node;
|
||||
XmString xm_string, xm_topString, xm_bottomString;
|
||||
char *s;
|
||||
int shrinkOutline = false;
|
||||
int pixmapPlacement;
|
||||
int alignment;
|
||||
int pixmapPlacement = GuiPIXMAP_LEFT;
|
||||
int alignment = XmALIGNMENT_BEGINNING;
|
||||
int isOpened;
|
||||
GuiIconFields gui_fields;
|
||||
|
||||
@@ -95,7 +95,7 @@ void IconObj::CreateIconObj(MotifUI *parent, char *name, char * /*category*/,
|
||||
gui_fields->alignments = new unsigned char[fields->n_fields];
|
||||
gui_fields->fields = new XmString[fields->n_fields];
|
||||
|
||||
unsigned char alignment;
|
||||
unsigned char alignment = XmALIGNMENT_BEGINNING;
|
||||
for (i = 0; i < fields->n_fields; i++)
|
||||
{
|
||||
gui_fields->widths[i] = fields->fields_widths[i];
|
||||
@@ -454,7 +454,7 @@ boolean IconObj::SetIcon(IconStyle style)
|
||||
{
|
||||
Pixmap pixmap, mask;
|
||||
int shrinkOutline = false;
|
||||
int pixmapPlacement;
|
||||
int pixmapPlacement = GuiPIXMAP_LEFT;
|
||||
int alignment;
|
||||
int isOpened;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ LabelObj::LabelObj(MotifUI *parent,
|
||||
XmString xm_string = StringCreate(name);
|
||||
Widget p, super_node;
|
||||
Pixel bg;
|
||||
int alignment;
|
||||
int alignment = XmALIGNMENT_BEGINNING;
|
||||
|
||||
switch (_style = style)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ LabelObj::LabelObj(MotifUI *parent,
|
||||
|
||||
void LabelObj::LabelStyle(LabelType style)
|
||||
{
|
||||
int alignment;
|
||||
int alignment = XmALIGNMENT_BEGINNING;
|
||||
|
||||
switch (_style = style)
|
||||
{
|
||||
|
||||
@@ -222,7 +222,7 @@ void MainWindow::PopupMenu(Widget widget, XtPointer client_data,
|
||||
{
|
||||
XRectangle pixmap_rect, label_rect;
|
||||
XButtonEvent * ev;
|
||||
Window child, parent, root;
|
||||
Window child, parent = NULL, root;
|
||||
int root_x, root_y, win_x, win_y;
|
||||
unsigned int modMask;
|
||||
Display * display = XtDisplay(widget);
|
||||
|
||||
@@ -502,7 +502,7 @@ Realize(
|
||||
XtValueMask *valueMask,
|
||||
XSetWindowAttributes *attr)
|
||||
{
|
||||
Boolean sw_child;
|
||||
Boolean sw_child = FALSE;
|
||||
Widget sw;
|
||||
Widget vbar;
|
||||
Dimension width, vbar_width, shadow_thickness, highlight_thickness;
|
||||
|
||||
Reference in New Issue
Block a user