[glib] Remove the G_GNUC_STRFTIME format check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove the G_GNUC_STRFTIME format check
- Date: Thu, 1 Nov 2018 16:02:15 +0000 (UTC)
commit 9ddcc79502349e02a1e796b363d891e177337af5
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 1 12:00:58 2018 -0400
Remove the G_GNUC_STRFTIME format check
This does not work, since g_date_time_format() supports
non-standard extensions such as %:::z, and this has
broken several consumers which use format errors, such
as ostree.
glib/gdatetime.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]