[vlc-commits] commit: void function cannot return a value (Francois Cartegnie )

git at videolan.org git at videolan.org
Wed Apr 14 18:02:36 CEST 2010


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 14 16:53:15 2010 +0200| [7dafb03c02357664ffcdaa1e7996b4dd43b39bf8] | committer: Rémi Denis-Courmont 

void function cannot return a value

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dafb03c02357664ffcdaa1e7996b4dd43b39bf8
---

 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



More information about the vlc-commits mailing list