ycphs / openxlsx

openxlsx - a fast way to read and write complex xslx files
https://ycphs.github.io/openxlsx/
Other
226 stars 75 forks source link

silence -Wformat warning #482

Closed JanMarvin closed 3 months ago

JanMarvin commented 3 months ago

CRAN has a few warnings currently only visible with older clang on Mac. -Wformat on gcc and clang on Linux does not complain.

read_workbook.cpp:555:52: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
read_workbook.cpp:565:54: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
read_workbook.cpp:626:50: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
JanMarvin commented 3 months ago

Cannot reproduce on Mac either. Maybe a spurious warning in clang14?

using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.3.9.4)’
using SDK: ‘MacOSX14.4.sdk’