Cannot compile GJS 1.66.0 on macOS with llvm/clang 10.0.1
Hi,
When updating the Homebrew formula for GJS I ran into the following errors:
../gi/repo.cpp:71:1: error: an attribute list cannot appear here
GJS_DEFINE_PRIV_FROM_JS(Repo, gjs_repo_class)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gjs/jsapi-class.h:80:23: note: expanded from macro 'GJS_DEFINE_PRIV_FROM_JS'
GJS_ALWAYS_INLINE [[nodiscard]] [[maybe_unused]] static inline bool \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gi/repo.cpp:71:1: error: an attribute list cannot appear here
GJS_DEFINE_PRIV_FROM_JS(Repo, gjs_repo_class)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gjs/jsapi-class.h:84:23: note: expanded from macro 'GJS_DEFINE_PRIV_FROM_JS'
GJS_ALWAYS_INLINE [[nodiscard]] static inline type* priv_from_js( \
^~~~~~~~~~~~~
2 errors generated.
Is this a GCC extension?
Edited by Tom Schoonjans