Skip to content

pgmspace.h out-of-date #182

Open
Open
@jgfoster

Description

@jgfoster

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    arduino mocksCompilation mocks for the Arduino librarybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions