From 29fb84b995b4196b30ea8170c1e5a42fcf09bfcf Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 12 Sep 2018 09:48:44 +0100 Subject: [PATCH] Disable GCC warning for fread in git-prompt.c --- prompt_fresh_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prompt_fresh_setup b/prompt_fresh_setup index 2f63781..e0b26cf 100644 --- a/prompt_fresh_setup +++ b/prompt_fresh_setup @@ -100,7 +100,8 @@ fresh_compile_git_prompt() { # --procelain` to greatly decrease the time taken to draw the prompt [ ! -d ~/.cache/zsh ] && mkdir -p ~/.cache/zsh if [ ! -f ~/.cache/zsh/git-prompt ]; then - cc -std=gnu99 -O3 -DNDEBUG ~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt + cc -std=gnu99 -O3 -DNDEBUG -Wno-unused-result \ + ~/.config/zsh/git-prompt.c -o ~/.cache/zsh/git-prompt if [ $? -ne 0 ]; then echo "git-prompt was not compiled, is a C99 toolchain installed?" fi