diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/egg/egg-toolbars-model.c | 10 | ||||
-rw-r--r-- | lib/ephy-state.c | 10 |
2 files changed, 8 insertions, 12 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c index 5e9d81b65..3837cc3f6 100755 --- a/lib/egg/egg-toolbars-model.c +++ b/lib/egg/egg-toolbars-model.c @@ -89,6 +89,10 @@ egg_toolbars_model_get_type (void) 0, /* n_preallocs */ (GInstanceInitFunc) egg_toolbars_model_init }; + volatile GType flags_type; /* work around gcc's optimiser */ + + /* make sure the flags type is known */ + flags_type = EGG_TYPE_TB_MODEL_FLAGS; type = g_type_register_static (G_TYPE_OBJECT, "EggToolbarsModel", @@ -827,9 +831,3 @@ egg_toolbars_model_get_item_type (EggToolbarsModel *t, return retval; } - -G_GNUC_UNUSED static void -register_type (void) -{ - egg_tb_model_flags_get_type (); -} diff --git a/lib/ephy-state.c b/lib/ephy-state.c index 66e673504..ad8c6e018 100644 --- a/lib/ephy-state.c +++ b/lib/ephy-state.c @@ -104,8 +104,12 @@ ensure_states (void) { if (states == NULL) { + volatile GType flags_type; /* work around gcc's optimiser */ char *xml_file; + /* make sure the type is known when we read the db */ + flags_type = EPHY_TYPE_STATE_WINDOW_FLAGS; + xml_file = g_build_filename (ephy_dot_dir (), EPHY_STATES_XML_FILE, NULL); @@ -514,9 +518,3 @@ ephy_state_save (void) states_db = NULL; } } - -G_GNUC_UNUSED static void -register_type (void) -{ - ephy_state_window_flags_get_type (); -} |