bug-apl
[Top][All Lists]
Advanced

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

Re: macOS warning present in build 1651


From: Dr . Jürgen Sauermann
Subject: Re: macOS warning present in build 1651
Date: Mon, 6 Mar 2023 16:11:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi Louis,

thanks, fixed in SVN 1655.

Best Regards,
Jürgen


On 3/5/23 11:27 PM, Louis Chretien via Bugs and suggestions for GNU APL wrote:
Two warnings are present in the build 1651 of APL:

g++ -DHAVE_CONFIG_H -I. -I..    -Wall  -I sql -I /Users/admin/Subversion/apl          -I/opt/local/include -I /Users/admin/Subversion/apl -MT apl-Symbol.o -MD -MP -MF .deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' || echo './'`Symbol.cc
Symbol.cc:954:16: 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(buffer, "*(%d %d %d %d %d %d %d)",
               ^
Symbol.cc:961:17: 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(buffer + 72, "%8.8lld\r\n", long_long(seq++));
                ^
Symbol.cc:988:9: 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(buffer + 72, "%8.8lld\r\n", long_long(seq++));
        ^                                                      ^
3 warnings generated.

g++ -DHAVE_CONFIG_H -I. -I..    -Wall  -I sql -I /Users/admin/Subversion/apl          -I/opt/local/include -I /Users/admin/Subversion/apl -MT apl-Quad_FIO.o -MD -MP -MF .deps/apl-Quad_FIO.Tpo -c -o apl-Quad_FIO.o `test -f 'Quad_FIO.cc' || echo './'`Quad_FIO.cc
Quad_FIO.cc:366:29: 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(numbuf, fmt, int_val);
                            ^
Quad_FIO.cc:379:29: 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(numbuf, fmt, float_val);
                            ^
Quad_FIO.cc:421:27: 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(numbuf, "%s", strerror(errno));
                          ^
3 warnings generated.


---
Louis Chrétien






reply via email to

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