[Mesa-dev] [PATCH 4/5] nv50/ir: silence compiler warnings about mismatched tags

Ilia Mirkin imirkin at alum.mit.edu
Tue May 12 08:22:07 PDT 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, May 12, 2015 at 11:13 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> These warnings have been detected by Clang 3.6.
>
> codegen/nv50_ir_from_tgsi.cpp:1319:10: warning: struct 'Source' was
> previously declared as a class [-Wmismatched-tags] const struct tgsi::Source *code;
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> index 254629f..6f7f397 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> @@ -1316,7 +1316,7 @@ private:
>     };
>
>  private:
> -   const struct tgsi::Source *code;
> +   const tgsi::Source *code;
>     const struct nv50_ir_prog_info *info;
>
>     struct {
> @@ -1955,13 +1955,13 @@ isResourceSpecial(const int r)
>  }
>
>  static inline bool
> -isResourceRaw(const struct tgsi::Source *code, const int r)
> +isResourceRaw(const tgsi::Source *code, const int r)
>  {
>     return isResourceSpecial(r) || code->resources[r].raw;
>  }
>
>  static inline nv50_ir::TexTarget
> -getResourceTarget(const struct tgsi::Source *code, int r)
> +getResourceTarget(const tgsi::Source *code, int r)
>  {
>     if (isResourceSpecial(r))
>        return nv50_ir::TEX_TARGET_BUFFER;
> --
> 2.4.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list