Index: /trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp	(revision 105965)
+++ /trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp	(revision 105966)
@@ -850,18 +850,20 @@
                 case GraphicsControllerType_VBoxSVGA:
                 {
+#if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_3D_ACCELERATION) /* Work around zero-sized arrays. */
                     static const GraphicsFeature_T s_aGraphicsFeatures[] =
                     {
-# ifdef VBOX_WITH_VIDEOHWACCEL
+#  ifdef VBOX_WITH_VIDEOHWACCEL
                         /* @bugref{9691} -- The legacy VHWA acceleration has been disabled completely. */
                         //GraphicsFeature_Acceleration2DVideo,
-# endif
-# ifdef VBOX_WITH_3D_ACCELERATION
+#  endif
+#  ifdef VBOX_WITH_3D_ACCELERATION
                         GraphicsFeature_Acceleration3D
-# endif
+#  endif
                     };
                     RT_CPP_VECTOR_ASSIGN_ARRAY(vecSupportedGraphicsFeatures, s_aGraphicsFeatures);
+# endif
                     break;
                 }
-#endif
+#endif /* VBOX_WITH_VMSVGA */
                 case GraphicsControllerType_VBoxVGA:
                     RT_FALL_THROUGH();
@@ -873,8 +875,6 @@
 
                 default:
-                {
-                    AssertFailedReturn(VERR_INVALID_PARAMETER);
-                    break; /* Never reached. */
-                }
+                    /* In case GraphicsControllerType_VBoxSVGA is not available. */
+                    break;
             }
 
