[vlc-devel] [PATCH 3/8] void function cannot return a value

Francois Cartegnie fcvlcdev at free.fr
Wed Apr 14 16:53:15 CEST 2010


---
 include/vlc_sql.h          |    2 +-
 src/video_output/inhibit.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_sql.h b/include/vlc_sql.h
index ef4ebca..0fe4f4b 100644
--- a/include/vlc_sql.h
+++ b/include/vlc_sql.h
@@ -300,7 +300,7 @@ static inline int sql_CommitTransaction( sql_t *p_sql )
  **/
 static inline void sql_RollbackTransaction( sql_t *p_sql )
 {
-    return p_sql->pf_rollback( p_sql );
+    p_sql->pf_rollback( p_sql );
 }
 
 /**
diff --git a/src/video_output/inhibit.h b/src/video_output/inhibit.h
index e3d1db4..f2cb92b 100644
--- a/src/video_output/inhibit.h
+++ b/src/video_output/inhibit.h
@@ -28,6 +28,6 @@ void vlc_inhibit_Destroy (vlc_inhibit_t *);
 
 static inline void vlc_inhibit_Set (vlc_inhibit_t *ih, bool suspend)
 {
-    return ih->inhibit (ih, suspend);
+    ih->inhibit (ih, suspend);
 }
 #endif
-- 
1.6.3




More information about the vlc-devel mailing list