Dimitry Andric a0e8aab7d8 Fix build of i915kms with base gcc
Base gcc fails to compile sys/dev/drm2/i915/intel_display.c for i386,
with the following -Werror warnings:

cc1: warnings being treated as errors
/usr/src/sys/dev/drm2/i915/intel_display.c:8884: warning:
initialization from incompatible pointer type

This is due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36432, which
incorrectly interprets the [] as a flexible array member.

Because base gcc does not have a -W flag to suppress this particular
warning, it requires a rather ugly cast.  To not influence any other
compiler, put it in a #if/#endif block.

Reviewed by:	kib
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D15744
2018-06-11 08:11:35 +00:00
..
2018-06-11 08:11:35 +00:00
2018-06-08 22:06:32 +00:00
2018-06-08 18:54:47 +00:00
2018-06-09 14:17:06 +00:00
2018-06-10 19:15:38 +00:00
2018-03-24 21:30:24 +00:00
2018-05-25 08:44:00 +00:00