Skip to content

variable length array issue for C++ API on CRAN #43

@fmichonneau

Description

@fmichonneau

In rncl, I use the C++ API of progress, and I got an email from CRAN saying they see the following warnings:

  • with the clang compiler

     /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/progress/include/RProgress.h:172:13: warning: variable length arrays are a C99 feature [-Wvla-extension]
     /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/progress/include/RProgress.h:220:16: warning: variable length arrays are a C99 feature [-Wvla-extension] 
    
  • on Windows:

d:/RCompile/CRANpkg/lib/3.4/progress/include/RProgress.h:172:27: warning: ISO C++ forbids variable length array 'bar' [-Wvla]
  d:/RCompile/CRANpkg/lib/3.4/progress/include/RProgress.h:220:26: warning: ISO C++ forbids variable length array 'spaces' [-Wvla]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions