Silence some warnings in xcode 13.3

Summary:
Silence some warnings in xcode 13.3 by explicitly defining some copy constructors in JSI and adding a compiler flag in Hermes.

Changelog:
[Internal][Fixed] - Build issues

Reviewed By: jpporto

Differential Revision: D34526541

fbshipit-source-id: 7029e3d20b9209007cf7e9f4c935338513ee1dd0
This commit is contained in:
Daniel Andersson 2022-03-07 11:52:51 -08:00 коммит произвёл Facebook GitHub Bot
Родитель ae3d4f7008
Коммит e1dc9a756b
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1252,6 +1252,8 @@ class JSI_EXPORT JSIException : public std::exception {
JSIException(std::string what) : what_(std::move(what)){};
public:
JSIException(const JSIException&) = default;
virtual const char* what() const noexcept override {
return what_.c_str();
}
@ -1268,6 +1270,8 @@ class JSI_EXPORT JSINativeException : public JSIException {
public:
JSINativeException(std::string what) : JSIException(std::move(what)) {}
JSINativeException(const JSINativeException&) = default;
virtual ~JSINativeException();
};
@ -1297,6 +1301,8 @@ class JSI_EXPORT JSError : public JSIException {
/// but necessary to avoid ambiguity with the above.
JSError(std::string what, Runtime& rt, Value&& value);
JSError(const JSError&) = default;
virtual ~JSError();
const std::string& getStack() const {