[Beignet] [PATCH] GBE: Fix one build error of friend declaration for a class.
Zhigang Gong
zhigang.gong at linux.intel.com
Mon May 5 21:50:05 PDT 2014
LGTM, pushed, thanks.
On Tue, May 06, 2014 at 06:48:26PM +0800, Chuanbo Weng wrote:
> If the g++ is older than 4.7.0, the class-key of the
> elaborated-type-specifier is required in a friend declaration
> for a class. So modify the code to make it compitible with old
> g++ version.
>
> Signed-off-by: Chuanbo Weng <chuanbo.weng at intel.com>
> ---
> backend/src/backend/gen_context.hpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/backend/src/backend/gen_context.hpp b/backend/src/backend/gen_context.hpp
> index 3b59797..aa06642 100644
> --- a/backend/src/backend/gen_context.hpp
> +++ b/backend/src/backend/gen_context.hpp
> @@ -195,7 +195,7 @@ namespace gbe
> /*! allocate a new curbe register and insert to curbe pool. */
> void allocCurbeReg(ir::Register reg, gbe_curbe_type value, uint32_t subValue = 0);
>
> - friend GenRegAllocator; //!< need to access errCode directly.
> + friend class GenRegAllocator; //!< need to access errCode directly.
>
> };
>
> --
> 1.7.9.5
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list