[vbox-dev] [PATCH 2/2] Additions: linux/drm: Fix compiler warning
Hans de Goede
hdegoede at redhat.com
Tue Jun 6 09:40:41 UTC 2017
Fix:
drivers/staging/vboxvideo/vbox_main.c: In function ‘vbox_hw_init’:
drivers/staging/vboxvideo/vbox_main.c:278:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
int ret;
^~~
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/VBox/Additions/linux/drm/vbox_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/VBox/Additions/linux/drm/vbox_main.c b/src/VBox/Additions/linux/drm/vbox_main.c
index 21e533a5..aea5ddb9 100644
--- a/src/VBox/Additions/linux/drm/vbox_main.c
+++ b/src/VBox/Additions/linux/drm/vbox_main.c
@@ -273,9 +273,10 @@ static bool have_hgsmi_mode_hints(struct vbox_private *vbox)
* to the memory manager. */
static int vbox_hw_init(struct vbox_private *vbox)
{
+ int ret;
+
vbox->full_vram_size = VBoxVideoGetVRAMSize();
vbox->any_pitch = VBoxVideoAnyWidthAllowed();
- int ret;
DRM_INFO("VRAM %08x\n", vbox->full_vram_size);
--
2.13.0
More information about the vbox-dev
mailing list