lang/gjs: Fix patching erorrs

PR:	255059
This commit is contained in:
Neel Chauhan 2021-04-14 13:05:03 -07:00
parent 11e1e6bd52
commit 9d98a223e3
2 changed files with 0 additions and 27 deletions

View File

@ -1,16 +0,0 @@
--- gjs/jsapi-class.h.orig 2020-09-12 19:34:36 UTC
+++ gjs/jsapi-class.h
@@ -77,11 +77,11 @@ bool gjs_define_property_dynamic(JSContext *cx,
* do_base_typecheck and priv_from_js
*/
#define GJS_DEFINE_PRIV_FROM_JS(type, klass) \
- GJS_ALWAYS_INLINE [[nodiscard]] [[maybe_unused]] static inline bool \
+ GJS_ALWAYS_INLINE static inline bool \
do_base_typecheck(JSContext* cx, JS::HandleObject obj, bool throw_error) { \
return gjs_typecheck_instance(cx, obj, &klass, throw_error); \
} \
- GJS_ALWAYS_INLINE [[nodiscard]] static inline type* priv_from_js( \
+ GJS_ALWAYS_INLINE static inline type* priv_from_js( \
JSContext* cx, JS::HandleObject obj) { \
return static_cast<type*>( \
JS_GetInstancePrivate(cx, obj, &klass, nullptr)); \

View File

@ -1,11 +0,0 @@
--- gjs/jsapi-util-args.h.orig 2020-09-12 19:34:36 UTC
+++ gjs/jsapi-util-args.h
@@ -43,7 +43,7 @@
#include "gjs/jsapi-util.h"
#include "gjs/macros.h"
-GJS_ALWAYS_INLINE [[nodiscard]] static inline bool check_nullable(
+GJS_ALWAYS_INLINE static inline bool check_nullable(
const char*& fchar, const char*& fmt_string) {
if (*fchar != '?')
return false;