bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()


From: Jacob Faibussowitsch
Subject: bug#58966: [Trunk] Xcode 14.1+ (and macOS 13.0+) deprecate sprintf()
Date: Wed, 2 Nov 2022 09:56:41 -0400

Fresh build this morning produces many such warnings. I have attached 
config.log and make.log:

buffer.c:1223:46: 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]
      AUTO_STRING_WITH_LEN (lnumber, number, sprintf (number, "-%d", i));
                                             ^
/Library/Developer/CommandLineTools/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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48:
 note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)

Attachment: config.log
Description: Binary data

Attachment: make.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]