Bug 21999

Summary: "intel_bufmgr_gem.c", line 813: warning: void function cannot return value
Product: xorg Reporter: Edward O'Callaghan <eocallaghan>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Edward O'Callaghan 2009-05-30 01:56:10 UTC
libdrm-2.4.5/libdrm/intel/intel_bufmgr_gem.c

"intel_bufmgr_gem.c", line 813: warning: void function cannot return value

proposed patch:

$ diff -u XW_NV/open-src/lib/libdrm/build_32/libdrm-2.4.5/libdrm/intel/intel_bufmgr_gem.c intel_bufmgr_gem.c 
--- XW_NV/open-src/lib/libdrm/build_32/libdrm-2.4.5/libdrm/intel/intel_bufmgr_gem.c     Sat Feb 21 17:56:29 2009
+++ intel_bufmgr_gem.c  Sat May 30 09:55:04 2009
@@ -810,7 +810,7 @@
 static void
 drm_intel_gem_bo_wait_rendering(drm_intel_bo *bo)
 {
-    return drm_intel_gem_bo_start_gtt_access(bo, 0);
+    drm_intel_gem_bo_start_gtt_access(bo, 0);
 }
 
 /**

Regards,
Comment 1 Eric Anholt 2009-07-02 11:06:56 UTC
commit 809472606c27567df0e252c95981fc0b6cbda58b
Author: Edward O'Callaghan <eocallaghan@auroraux.org>
Date:   Thu Jul 2 11:03:48 2009 -0700

    intel: fix compiler warning about returning a void value.
    
    bug #21999

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.