Commit 1b09c02c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Include assert.h when needed

parent 15e4046f
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <assert.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
...@@ -599,6 +598,8 @@ struct gc_object_t ...@@ -599,6 +598,8 @@ struct gc_object_t
VLC_GC_MEMBERS VLC_GC_MEMBERS
}; };
#include <assert.h> /* FIXME: should not be included here */
static inline void __vlc_gc_incref( gc_object_t * p_gc ) static inline void __vlc_gc_incref( gc_object_t * p_gc )
{ {
assert( p_gc->i_gc_refcount > 0 ); assert( p_gc->i_gc_refcount > 0 );
......
...@@ -36,11 +36,8 @@ extern "C" { ...@@ -36,11 +36,8 @@ extern "C" {
* @{ * @{
*/ */
#include <assert.h>
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_events.h> #include <vlc_events.h>
#include <stdio.h>
#include <stdlib.h>
struct services_discovery_t struct services_discovery_t
{ {
......
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
#include "vlc_charset.h" #include "vlc_charset.h"
#include <errno.h> /* errno */ #include <errno.h> /* errno */
#include <assert.h>
#ifdef HAVE_LIMITS_H #include <limits.h>
# include <limits.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> /* getuid() */ # include <unistd.h> /* getuid() */
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <errno.h> /* errno */ #include <errno.h> /* errno */
#include <stdbool.h> #include <stdbool.h>
#include <assert.h>
#ifdef HAVE_LIMITS_H #ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
......
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
#include "vlc_charset.h" #include "vlc_charset.h"
#include <errno.h> /* errno */ #include <errno.h> /* errno */
#include <assert.h>
#ifdef HAVE_LIMITS_H #include <limits.h>
# include <limits.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> /* getuid() */ # include <unistd.h> /* getuid() */
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <assert.h>
#include <vlc/vlc.h> #include <vlc/vlc.h>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include <assert.h>
#include "input_internal.h" #include "input_internal.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <assert.h>
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include "vlc_playlist.h" #include "vlc_playlist.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "../playlist/playlist_internal.h" #include "../playlist/playlist_internal.h"
#include <errno.h> #include <errno.h>
#include <limits.h> /* PATH_MAX */ #include <limits.h> /* PATH_MAX */
#include <assert.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
# include <fcntl.h> # include <fcntl.h>
# include <errno.h> /* ENOSYS */ # include <errno.h> /* ENOSYS */
#endif #endif
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <stdlib.h> /* free(), strtol() */ #include <stdlib.h> /* free(), strtol() */
#include <stdio.h> /* sprintf() */ #include <stdio.h> /* sprintf() */
#include <string.h> /* strdup() */ #include <string.h> /* strdup() */
#include <assert.h>
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <errno.h> #include <errno.h>
#include <assert.h>
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <assert.h>
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include "vlc_playlist.h" #include "vlc_playlist.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <assert.h>
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include "vlc_playlist.h" #include "vlc_playlist.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <stdio.h> /* sprintf() */ #include <stdio.h> /* sprintf() */
#include <string.h> #include <string.h>
#include <ctype.h> /* tolower(), isxdigit() */ #include <ctype.h> /* tolower(), isxdigit() */
#include <assert.h>
#include <vlc_sout.h> #include <vlc_sout.h>
#include <vlc_network.h> #include <vlc_network.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment