Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for GCC 9 ?! #1184

Closed
soeth16 opened this issue Feb 13, 2020 · 2 comments
Closed

Support for GCC 9 ?! #1184

soeth16 opened this issue Feb 13, 2020 · 2 comments
Labels

Comments

@soeth16
Copy link

soeth16 commented Feb 13, 2020

Hi at all,
In order to compile the framework with GCC 9.2 I made following changes:

src/ArduinoJson/Object/MemberProxy.hpp

...
template <typename TObject, typename TStringRef>
class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
                    public Visitable {
  typedef MemberProxy<TObject, TStringRef> this_type;

 public:
  MemberProxy(const MemberProxy&) = default; // GCC 9
...

src/ArduinoJson/Array/ElementProxy.hpp

...
template <typename TArray>
class ElementProxy : public VariantOperators<ElementProxy<TArray> >,
                     public Visitable {
  typedef ElementProxy<TArray> this_type;

 public:
  ElementProxy(const ElementProxy&) = default; // GCC 9
...

extras/tests/JsonDocument/BasicJsonDocument.cpp:

...
class SpyingAllocator {
 public:
  SpyingAllocator(const SpyingAllocator&) = default; // GCC 9
...
@bblanchon
Copy link
Owner

Hi @soeth16,

Thank you for reporting this.
I fixed this warning in the main branch.

Best regards,
Benoit

@bblanchon bblanchon added the bug label Feb 19, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 21, 2020
@bblanchon
Copy link
Owner

This fix was included in ArduinoJson 6.15.0.

stawiski pushed a commit to stawiski/ArduinoJson that referenced this issue Jul 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants