Skip to content

pgmspace.h out-of-date #182

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

Open
jgfoster opened this issue Oct 15, 2020 · 0 comments
Open

pgmspace.h out-of-date #182

jgfoster opened this issue Oct 15, 2020 · 0 comments
Labels
arduino mocks Compilation mocks for the Arduino library bug Something isn't working

Comments

@jgfoster
Copy link
Member

jgfoster commented Oct 15, 2020

System

  • OS: macOS
  • ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
  • Bundler version 1.17.2
  • arduino_ci (0.3.0)
  • Apple clang version 12.0.0 (clang-1200.0.32.2)
  • Arduino IDE version: 1.8.13
  • java version "11.0.7" 2020-04-14 LTS
  • URL of your Arduino project: https://github.com/Arduino-CI/Time

Warning


/Users/jfoster/code/Arduino/Time/src/DateStrings.cpp:72:29: warning: ISO C++ does not allow indirection on operand of type 'const void *' [-Wvoid-ptr-dereference]
    strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(monthNames_P[month])));
    ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jfoster/code/Arduino/Time/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/avr/pgmspace.h:49:40: note: expanded from macro 'pgm_read_ptr'
#define pgm_read_ptr(address_short)    pgm_read_ptr_near(address_short)
                                       ^
/Users/jfoster/code/Arduino/Time/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/avr/pgmspace.h:37:45: note: expanded from macro 'pgm_read_ptr_near'
#define pgm_read_ptr_near(address_short)   (* (const void *)     (address_short) )
                                            ^
/Users/jfoster/code/Arduino/Time/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/avr/pgmspace.h:84:32: note: expanded from macro 'strcpy_P'
#define strcpy_P(...) ::strcpy(__VA_ARGS__)
                               ^~~~~~~~~~~

From the top of cpp/arduino/arv/pgmspace.h:37 it appears that this file was generated from 1.8.5 and I have 1.8.13. It might be time to regenerate to file?

@ianfixes ianfixes added arduino mocks Compilation mocks for the Arduino library bug Something isn't working labels Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino mocks Compilation mocks for the Arduino library bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants