Handle the "no error" return from pref_set_pair_fct(), to squelch
compiler warnings. svn path=/trunk/; revision=20070
This commit is contained in:
parent
72bc2582fc
commit
6404c06620
|
@ -1232,6 +1232,9 @@ read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fc
|
|||
if (got_val) {
|
||||
switch (pref_set_pair_fct(cur_var->str, cur_val->str, private_data)) {
|
||||
|
||||
case PREFS_SET_OK:
|
||||
break;
|
||||
|
||||
case PREFS_SET_SYNTAX_ERR:
|
||||
g_warning ("%s line %d: Syntax error %s", pf_path, pline, hint);
|
||||
break;
|
||||
|
@ -1295,6 +1298,9 @@ read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fc
|
|||
if (got_val) {
|
||||
switch (pref_set_pair_fct(cur_var->str, cur_val->str, private_data)) {
|
||||
|
||||
case PREFS_SET_OK:
|
||||
break;
|
||||
|
||||
case PREFS_SET_SYNTAX_ERR:
|
||||
g_warning ("%s line %d: Syntax error %s", pf_path, pline, hint);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue