[OpenSIPS-Devel] [OpenSIPS/opensips] 38242d: Fix -Werror=format-security
Bogdan Andrei IANCU
noreply at github.com
Wed May 4 06:04:59 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 38242d6fe7491ea5de900e9ae45e3902edd1a67f
https://github.com/OpenSIPS/opensips/commit/38242d6fe7491ea5de900e9ae45e3902edd1a67f
Author: Peter Lemenkov <lemenkov at gmail.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M menuconfig/curses.c
Log Message:
-----------
Fix -Werror=format-security
```
make[1]: Entering directory '/builddir/build/BUILD/opensips-3.1.9/menuconfig'
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/usr/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o cfg.o cfg.c
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g -Wall -DMENUCONFIG_CFG_PATH=\"/usr/share/opensips//menuconfig_templates/\" -DMENUCONFIG_GEN_PATH=\"/usr/etc/opensips/\" -DMENUCONFIG_HAVE_SOURCES=0 -c -o curses.o curses.c
curses.c: In function 'draw_sibling_menu':
curses.c:92:75: error: format not a string literal and no format arguments [-Werror=format-security]
92 | mvprintw(HIGH_NOTICE_Y,max_x/2-20,menu->parent?menu->parent->name:"OpenSIPS Main Configuration Menu");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
curses.c: In function 'draw_item_list':
curses.c:208:9: error: format not a string literal and no format arguments [-Werror=format-security]
208 | mvprintw(HIGH_NOTICE_Y,max_x/2-20,menu->name);
| ^~~~~~~~
curses.c:251:17: error: format not a string literal and no format arguments [-Werror=format-security]
251 | print_notice(NOTICE_Y,NOTICE_X,0,current->description);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [<builtin>: curses.o] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/opensips-3.1.9/menuconfig'
make: *** [Makefile:482: opensipsmc] Error 2
```
Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
Commit: 47bfb3e3292a1acca6562427038b25a302d65ff1
https://github.com/OpenSIPS/opensips/commit/47bfb3e3292a1acca6562427038b25a302d65ff1
Author: Bogdan Andrei IANCU <bogdan at opensips.org>
Date: 2022-05-04 (Wed, 04 May 2022)
Changed paths:
M menuconfig/curses.c
Log Message:
-----------
Merge pull request #2821 from lemenkov/format_security
Fix -Werror=format-security
Compare: https://github.com/OpenSIPS/opensips/compare/9d5dd9539d54...47bfb3e3292a
More information about the Devel
mailing list