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

unused parameter 'tag' #284

Closed
dirk1730 opened this issue Nov 19, 2020 · 3 comments
Closed

unused parameter 'tag' #284

dirk1730 opened this issue Nov 19, 2020 · 3 comments

Comments

@dirk1730
Copy link

When compiling, clang outputs:

jsoncons/basic_json.hpp:732:54: error: unused parameter 'tag' [-Werror,-Wunused-parameter]
       array_storage(const array& val, semantic_tag tag, const Allocator& a)
                                                     ^
jsoncons/basic_json.hpp:819:65: error: unused parameter 'tag' [-Werror,-Wunused-parameter]
       explicit object_storage(const object& val, semantic_tag tag, const Allocator& `a)

In both cases, the parameter tag is not used.

  • Compiler: clang11
  • Architecture (e.g. x86, x64) x64
  • Operating system: linux
@dirk1730 dirk1730 added the Bug label Nov 19, 2020
danielaparker added a commit that referenced this issue Nov 19, 2020
@danielaparker
Copy link
Owner

Thanks for reporting this one, and the other one. Could you check if you still see them with the latest code on master? I don't have access to a clang11 build environment to verify.

@dirk1730
Copy link
Author

Hello Daniel,

Thanks for the quick fix. Both issues compile fine now!

Thanks, Dirk.

@dirk1730
Copy link
Author

Fixed in 6cc08fc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants