LLNL / SAMRAI

Structured Adaptive Mesh Refinement Application Infrastructure - a scalable C++ framework for block-structured AMR application development
https://computing.llnl.gov/projects/samrai
Other
224 stars 80 forks source link

warning: 'sprintf' is deprecated on OSX #245

Closed PhilipDeegan closed 11 months ago

PhilipDeegan commented 12 months ago
SAMRAI/tbox/Utilities.cpp:54:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
      sprintf(path_buf, "%s", path.c_str());

I had this issue before with SWIG on OSX: reference: https://github.com/swig/swig/issues/2502

I'm not sure if this is real issue or just something Apple has decreed. If you don't intend to do anything because OSX(or similar) are not supported feel free to close this.

nselliott commented 11 months ago

This was a small enough change that I went ahead and did it #248