mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
tests/check: Avoid using "bool" for the variable name
Glib 2.82 will be aliasing [1] TRUE and FALSE to the C99 definitions, which means it will be including stdbool.h As such, having variables named "bool" causes issues since it conflicts with the symbol defined in stdbool.h [1] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4001 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6897>
This commit is contained in:
parent
27c95064aa
commit
a746376e3f
1 changed files with 3 additions and 3 deletions
|
@ -424,7 +424,7 @@ GST_START_TEST (test_structure_new)
|
|||
GstStructure *s;
|
||||
GError *e;
|
||||
GQuark domain;
|
||||
gboolean bool;
|
||||
gboolean get_bool;
|
||||
gint num, den;
|
||||
GstClockTime clocktime;
|
||||
guint64 uint64;
|
||||
|
@ -448,8 +448,8 @@ GST_START_TEST (test_structure_new)
|
|||
fail_if (gst_structure_has_field (s, "key"));
|
||||
fail_unless_equals_int (gst_structure_n_fields (s), 4);
|
||||
|
||||
fail_unless (gst_structure_get_boolean (s, "bool", &bool));
|
||||
fail_unless (bool);
|
||||
fail_unless (gst_structure_get_boolean (s, "bool", &get_bool));
|
||||
fail_unless (get_bool);
|
||||
|
||||
fail_unless (gst_structure_get_fraction (s, "fraction", &num, &den));
|
||||
fail_unless_equals_int (num, 1);
|
||||
|
|
Loading…
Reference in a new issue