-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Labels
DefectIncludes code to repair a defect in EnergyPlusIncludes code to repair a defect in EnergyPlusDeveloper IssueRelated to cmake, packaging, installers, or developer tooling (CI, etc)Related to cmake, packaging, installers, or developer tooling (CI, etc)
Description
Issue overview
Sprintf is deprecated, and a warning is issued in glfw (from penumbra) and btcvb's xmlUtil
That warnings is raised as an error ultimately. It happens in Debug mode.
/Users/julien/Software/Others/EnergyPlus/third_party/penumbra/vendor/glfw/src/cocoa_joystick.m:484:9: 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]
484 | sprintf(guid, "03000000%.4s0000%.4s000000000000",
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
/Users/julien/Software/Others/EnergyPlus/third_party/BCVTB/utilSocket.c:219:7: 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]
219 | sprintf(temCha,"%d ", booVal[i]);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
/Users/julien/Software/Others/EnergyPlus/third_party/BCVTB/utilSocket.c:226:3: 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]
226 | sprintf(temCha,"\n");
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)
Operating System (Multiple choices)
MacOS
Operating System Version
Tahoe
Version of EnergyPlus
develop
Unmethours link or helpdesk ticket number
N/A
Defect file
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DefectIncludes code to repair a defect in EnergyPlusIncludes code to repair a defect in EnergyPlusDeveloper IssueRelated to cmake, packaging, installers, or developer tooling (CI, etc)Related to cmake, packaging, installers, or developer tooling (CI, etc)