bug-apl
[Top][All Lists]
Advanced

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

macOS warning present in build 1651


From: Louis Chretien
Subject: macOS warning present in build 1651
Date: Sun, 5 Mar 2023 17:27:55 -0500

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]