You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG(Error, "Failed to get usable start of end date from run period object, defaulting to steady state")
}
Current Behavior
OpenStudio/src/airflow/contam/ForwardTranslator.cpp:90:5: error: '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. [-Werror,-Wdeprecated-declarations]
sprintf(buffer, "%02d/%02d\t%02d:%02d:%02d", month(datetime.date().monthOfYear()), datetime.date().dayOfMonth(), datetime.time().hours(),
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
Expected Behavior
Build shouldn't fail.
Steps to Reproduce
Macos Monterey 12.6 (21G115), M1
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Possible Solution
Replace buffer / sprintf with modern C++ (eg : fmt::format)
The text was updated successfully, but these errors were encountered:
Issue overview
Modernize C-like code in contam:
OpenStudio/src/airflow/contam/ForwardTranslator.cpp
Lines 427 to 442 in bc44cbb
Current Behavior
Expected Behavior
Build shouldn't fail.
Steps to Reproduce
Macos Monterey 12.6 (21G115), M1
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Possible Solution
Replace buffer / sprintf with modern C++ (eg : fmt::format)
The text was updated successfully, but these errors were encountered: