aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-state.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-state.c')
-rw-r--r--lib/ephy-state.c10
1 files changed, 4 insertions, 6 deletions
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 ();
-}