Bug 86045

Summary: cc1: error: unrecognized command line option "-Wvla" on OpenBSD
Product: piglit Reporter: Vinson Lee <vlee>
Component: infrastructureAssignee: Dylan Baker <baker.dylan.c>
Status: RESOLVED FIXED QA Contact: Piglit Mailing List <piglit>
Severity: blocker    
Priority: medium CC: emil.l.velikov, jfonseca
Version: unspecifiedKeywords: bisected, regression
Hardware: x86-64 (AMD64)   
OS: OpenBSD   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2014-11-08 21:41:29 UTC
piglit: d052e50c5e78eca69eb950671d943e2811d431fb (master)

Build error on OpenBSD 5.6.

[  0%] Building C object target_api/no_api/tests/util/CMakeFiles/piglitutil.dir/piglit-log.c.o
cc1: error: unrecognized command line option "-Wvla"


commit d052e50c5e78eca69eb950671d943e2811d431fb
Author: José Fonseca <jfonseca@vmware.com>
Date:   Fri Nov 7 14:17:51 2014 +0000

    cmake: Warn when variable length arrays are used.
    
    As these are not supported on MSVC, not even MSVC 2013 since it only has
    library support for C99, it doesn't actually support C99 syntax.
    
    Suggested by Jan Vesely.
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Comment 1 Vinson Lee 2014-11-08 21:56:20 UTC
commit a4f0342dbdbaec97d35442876efce3bd53390f5a
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Sat Nov 8 13:51:10 2014 -0800

    cmake: Fix GCC -Wvla flag check.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86045
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.