Bug 21999 - "intel_bufmgr_gem.c", line 813: warning: void function cannot return value
Summary: "intel_bufmgr_gem.c", line 813: warning: void function cannot return value
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Solaris
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-05-30 01:56 UTC by Edward O'Callaghan
Modified: 2009-07-02 11:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.