[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tcg/tcg-op.h: Add multiple include guard
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH] tcg/tcg-op.h: Add multiple include guard |
Date: |
Thu, 8 Nov 2018 16:57:47 +0400 |
On Thu, Nov 8, 2018 at 4:53 PM Peter Maydell <address@hidden> wrote:
>
> The tcg-op.h header was missing the usual guard against multiple
> inclusion; add it.
>
> (Spotted by lgtm.com's static analyzer.)
>
> Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
> ---
> tcg/tcg-op.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
> index 7513c1eb7c5..db4e9188f42 100644
> --- a/tcg/tcg-op.h
> +++ b/tcg/tcg-op.h
> @@ -22,6 +22,9 @@
> * THE SOFTWARE.
> */
>
> +#ifndef TCG_TCG_OP_H
> +#define TCG_TCG_OP_H
> +
> #include "tcg.h"
> #include "exec/helper-proto.h"
> #include "exec/helper-gen.h"
> @@ -1267,3 +1270,5 @@ static inline void tcg_gen_trunc_ptr_i32(TCGv_i32 r,
> TCGv_ptr a)
>
> #undef PTR
> #undef NAT
> +
> +#endif /* TCG_TCG_OP_H */
> --
> 2.19.1
>
>
--
Marc-André Lureau