From 3b41592d6c3098a470001c67d8b412d71a8f81fe Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 30 Apr 2023 16:42:01 +0200 Subject: [PATCH] add flags for gcc and g++ advices from https://nullprogram.com/blog/2023/04/29/ --- .config/fish/conf.d/abbr.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish index a941d66..0b3fa2f 100644 --- a/.config/fish/conf.d/abbr.fish +++ b/.config/fish/conf.d/abbr.fish @@ -16,8 +16,8 @@ abbr diff "delta" abbr gc "git clone" abbr grep "grep -Irni 'txt' ." abbr ls "exa --git --icons -gl" -abbr mgcc "clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g main.c && ./a.out; rm a.out 2> /dev/null" -abbr mg++ "clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g -Wold-style-cast -Wsign-conversion main.cpp && ./a.out; rm a.out 2> /dev/null" +abbr mgcc "clear; gcc -Wall -Wextra -Wconversion -Wdouble-promotion -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -fsanitize-trap -g3 main.c && ./a.out; rm a.out 2> /dev/null" +abbr mg++ "clear; g++ -Wall -Wextra -Wdouble-promotion -Wshadow -Wnon-virtual-dtor -pedantic -g3 -Wold-style-cast -Wsign-conversion main.cpp && ./a.out; rm a.out 2> /dev/null" abbr mirrors_update "curl -s 'https://archlinux.org/mirrorlist/?country=FR&country=GB&protocol=https&use_mirror_status=on' | sed -e 's/^#Server/Server/' -e '/^#/d' | sudo bash -c 'rankmirrors -n 7 - > /etc/pacman.d/mirrorlist' && sudo pacman -Syy" abbr mmake "clear; make && ./main; make clean 2> /dev/null" abbr nano "micro"