bpf: Fix double whitespace warning

Message ID 20230215100202.lrjn2dpk2xuwht6a@lug-owl.de
State Accepted
Headers
Series bpf: Fix double whitespace warning |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jan-Benedict Glaw Feb. 15, 2023, 10:02 a.m. UTC
  Hi!

Since a recent commit, the BPF target produces a new warning due to
two consecutive non-quoted spaces in a message. This'll fix it:

gcc/
	* config/bpf/bpf.cc (bpf_option_override): Fix doubled space.


Ok?

MfG, JBG


--
  

Comments

Jose E. Marchesi Feb. 15, 2023, 10:49 a.m. UTC | #1
> Hi!
>
> Since a recent commit, the BPF target produces a new warning due to
> two consecutive non-quoted spaces in a message. This'll fix it:
>
> gcc/
> 	* config/bpf/bpf.cc (bpf_option_override): Fix doubled space.
>
>
> Ok?

OK.  Thanks for the patch.

(Sorry I didn't fix this when you first reported it.  My TODO list is
long atm :/)

> MfG, JBG
>
> diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc
> index b268801d00c..d8693f8cfbe 100644
> --- a/gcc/config/bpf/bpf.cc
> +++ b/gcc/config/bpf/bpf.cc
> @@ -258,7 +258,7 @@ bpf_option_override (void)
>      {
>        inform (input_location,
>                "%<-fstack-protector%> does not work "
> -              " on this architecture");
> +	      "on this architecture");
>        flag_stack_protect = 0;
>      }
>  }
  

Patch

diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc
index b268801d00c..d8693f8cfbe 100644
--- a/gcc/config/bpf/bpf.cc
+++ b/gcc/config/bpf/bpf.cc
@@ -258,7 +258,7 @@  bpf_option_override (void)
     {
       inform (input_location,
               "%<-fstack-protector%> does not work "
-              " on this architecture");
+	      "on this architecture");
       flag_stack_protect = 0;
     }
 }