Title: [235373] trunk/Source/_javascript_Core
Revision
235373
Author
[email protected]
Date
2018-08-27 09:39:11 -0700 (Mon, 27 Aug 2018)

Log Message

[GTK][JSC] Add warn_unused_result attribute to some APIs
https://bugs.webkit.org/show_bug.cgi?id=188983

Patch by Patrick Griffis <[email protected]> on 2018-08-27
Reviewed by Michael Catanzaro.

* API/glib/JSCValue.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/API/glib/JSCValue.h (235372 => 235373)


--- trunk/Source/_javascript_Core/API/glib/JSCValue.h	2018-08-27 16:34:11 UTC (rev 235372)
+++ trunk/Source/_javascript_Core/API/glib/JSCValue.h	2018-08-27 16:39:11 UTC (rev 235373)
@@ -182,13 +182,13 @@
 jsc_value_object_invoke_method            (JSCValue             *value,
                                            const char           *name,
                                            GType                 first_parameter_type,
-                                           ...);
+                                           ...) G_GNUC_WARN_UNUSED_RESULT;
 
 JSC_API JSCValue *
 jsc_value_object_invoke_methodv           (JSCValue             *value,
                                            const char           *name,
                                            guint                 n_parameters,
-                                           JSCValue            **parameters);
+                                           JSCValue            **parameters) G_GNUC_WARN_UNUSED_RESULT;
 
 JSC_API void
 jsc_value_object_define_property_data     (JSCValue             *value,
@@ -240,12 +240,12 @@
 JSC_API JSCValue *
 jsc_value_function_call                   (JSCValue             *value,
                                            GType                 first_parameter_type,
-                                           ...);
+                                           ...) G_GNUC_WARN_UNUSED_RESULT;
 
 JSC_API JSCValue *
 jsc_value_function_callv                  (JSCValue             *value,
                                            guint                 n_parameters,
-                                           JSCValue            **parameters);
+                                           JSCValue            **parameters) G_GNUC_WARN_UNUSED_RESULT;
 
 JSC_API gboolean
 jsc_value_is_constructor                  (JSCValue             *value);

Modified: trunk/Source/_javascript_Core/ChangeLog (235372 => 235373)


--- trunk/Source/_javascript_Core/ChangeLog	2018-08-27 16:34:11 UTC (rev 235372)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-08-27 16:39:11 UTC (rev 235373)
@@ -1,3 +1,12 @@
+2018-08-27  Patrick Griffis  <[email protected]>
+
+        [GTK][JSC] Add warn_unused_result attribute to some APIs
+        https://bugs.webkit.org/show_bug.cgi?id=188983
+
+        Reviewed by Michael Catanzaro.
+
+        * API/glib/JSCValue.h:
+
 2018-08-24  Yusuke Suzuki  <[email protected]>
 
         [JSC] Array.prototype.reverse modifies JSImmutableButterfly
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to