Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A ArduinoJson
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Benoît Blanchon
  • ArduinoJson
  • Issues
  • #102
Closed
Open
Issue created Aug 26, 2015 by Administrator@rootContributor

register deprecated error with clang

Created by: Slechtvalk

Hi, I got this error when compiling ArduinoJSON on FreeBSD 10.2 (CLang) 👍

/opslag/home/oldenburgh/techniek/Variosystem/software/swexternals/software/extern/json/ArduinoJson/src/Internals/JsonParser.cpp:19:3: error: 'register' storage class specifier is deprecated [-Werror,-Wdeprecated-register] register const char *ptr = skipSpacesAndComments(_readPtr); ^~~~~~~~~ 1 error generated.

I think the solution is one of these

  1. drop the register keyword.

2.use a pragma to turn of the error on clang, like #pragma clang diagnostic push

pragma clang diagnostic ignored "-Wdeprecated-register"

< json code >

pragma clang diagnostic pop

Greetings,

Ewout Boks

Assignee
Assign to
Time tracking