Commit 32305aa4 authored by Caolan McNamara's avatar Caolan McNamara

#141525 some icc compile time warning fixes

parent b5caf0ce
......@@ -289,7 +289,7 @@ MSObjAttr *
ms_obj_attr_bag_lookup (MSObjAttrBag *attrs, MSObjAttrID id)
{
if (attrs != NULL) {
MSObjAttr attr;
MSObjAttr attr = {0, {0}};
*((MSObjAttrID *)&(attr.id)) = id;
return g_hash_table_lookup (attrs, &attr);
}
......
......@@ -1418,7 +1418,6 @@ format_toggle_thousands (GnmFormat const *fmt)
{
FormatCharacteristics fc;
GString *newformat;
GnmFormat *sf;
fc = fmt->family_info;
fc.thousands_sep = !fc.thousands_sep;
......@@ -1439,12 +1438,10 @@ format_toggle_thousands (GnmFormat const *fmt)
return style_format_number (&fc);
default:
return NULL;
break;
}
sf = style_format_new_XL (newformat->str, FALSE);
g_string_free (newformat, TRUE);
return sf;
return NULL;
}
/*********************************************************************/
......
......@@ -1524,17 +1524,19 @@ radio_button_eval (GnmDependent *dep)
{
GnmValue *v;
GnmEvalPos pos;
gboolean err;
/* gboolean err; */
int result;
v = gnm_expr_eval (dep->expression, eval_pos_init_dep (&pos, dep),
GNM_EXPR_EVAL_SCALAR_NON_EMPTY);
result = value_get_as_int (v);
value_release (v);
#if 0
if (!err) {
/* FIXME : finish this when I have a better idea of a group */
/* SheetWidgetRadioButton *swrb = DEP_TO_RADIO_BUTTON (dep); */
}
#endif
}
static void
......@@ -1664,16 +1666,18 @@ list_content_eval (GnmDependent *dep)
{
GnmValue *v;
GnmEvalPos pos;
gboolean err;
/* gboolean err;*/
int result;
v = gnm_expr_eval (dep->expression, eval_pos_init_dep (&pos, dep),
GNM_EXPR_EVAL_SCALAR_NON_EMPTY);
result = value_get_as_int (v);
value_release (v);
#if 0
if (!err) {
/* SheetWidgetListBase *swc = DEP_TO_LIST_BASE_INPUT (dep); */
}
#endif
}
static void
......@@ -1690,16 +1694,18 @@ list_output_eval (GnmDependent *dep)
{
GnmValue *v;
GnmEvalPos pos;
gboolean err;
/* gboolean err;*/
int result;
v = gnm_expr_eval (dep->expression, eval_pos_init_dep (&pos, dep),
GNM_EXPR_EVAL_SCALAR_NON_EMPTY);
result = value_get_as_int (v);
value_release (v);
#if 0
if (!err) {
/* SheetWidgetListBase *swc = DEP_TO_LIST_BASE_OUTPUT (dep); */
}
#endif
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment