diff --git a/glib/gdatetime.h b/glib/gdatetime.h
index 20167a60d..8bf8cd98d 100644
--- a/glib/gdatetime.h
+++ b/glib/gdatetime.h
@@ -261,7 +261,7 @@ GDateTime *             g_date_time_to_utc                              (GDateTi
 
 GLIB_AVAILABLE_IN_ALL
 gchar *                 g_date_time_format                              (GDateTime      *datetime,
-                                                                         const gchar    *format) G_GNUC_MALLOC G_GNUC_STRFTIME (2);
+                                                                         const gchar    *format);
 
 G_END_DECLS