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

Use NDEBUG

parent 484c9311
...@@ -332,7 +332,7 @@ connect: ...@@ -332,7 +332,7 @@ connect:
if( p_access->b_die || Connect( p_access, 0 ) ) if( p_access->b_die || Connect( p_access, 0 ) )
goto error; goto error;
#ifdef DEBUG #ifndef NDEBUG
case 0: case 0:
break; break;
......
...@@ -94,7 +94,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -94,7 +94,7 @@ static int Open ( vlc_object_t *p_this )
/* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet */ /* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet */
i_flags |= SDL_INIT_EVENTTHREAD; i_flags |= SDL_INIT_EVENTTHREAD;
#endif #endif
#ifdef DEBUG #ifndef NDEBUG
/* In debug mode you may want vlc to dump a core instead of staying /* In debug mode you may want vlc to dump a core instead of staying
* stuck */ * stuck */
i_flags |= SDL_INIT_NOPARACHUTE; i_flags |= SDL_INIT_NOPARACHUTE;
......
...@@ -1384,7 +1384,7 @@ ...@@ -1384,7 +1384,7 @@
[o_outline_dict setObject:o_value forKey:[NSString stringWithFormat:@"%p", [o_outline_dict setObject:o_value forKey:[NSString stringWithFormat:@"%p",
[o_value pointerValue]]]; [o_value pointerValue]]];
#ifdef DEBUG #ifndef NDEBUG
msg_Dbg( VLCIntf, "adding item %p", [o_value pointerValue] ); msg_Dbg( VLCIntf, "adding item %p", [o_value pointerValue] );
#endif #endif
return o_value; return o_value;
......
...@@ -273,7 +273,7 @@ int E_( EStoPES )( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es, ...@@ -273,7 +273,7 @@ int E_( EStoPES )( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
*pp_pes = p_pes = NULL; *pp_pes = p_pes = NULL;
#ifdef DEBUG #ifndef NDEBUG
memset( header, 0, 50 ); memset( header, 0, 50 );
#endif #endif
......
...@@ -198,7 +198,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -198,7 +198,7 @@ static int Open ( vlc_object_t *p_this )
/* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet*/ /* Win32 SDL implementation doesn't support SDL_INIT_EVENTTHREAD yet*/
| SDL_INIT_EVENTTHREAD | SDL_INIT_EVENTTHREAD
#endif #endif
#ifdef DEBUG #ifndef NDEBUG
/* In debug mode you may want vlc to dump a core instead of staying /* In debug mode you may want vlc to dump a core instead of staying
* stuck */ * stuck */
| SDL_INIT_NOPARACHUTE | SDL_INIT_NOPARACHUTE
......
...@@ -217,7 +217,7 @@ void vout_DestroyPicture( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -217,7 +217,7 @@ void vout_DestroyPicture( vout_thread_t *p_vout, picture_t *p_pic )
{ {
vlc_mutex_lock( &p_vout->picture_lock ); vlc_mutex_lock( &p_vout->picture_lock );
#ifdef DEBUG #ifndef NDEBUG
/* Check if picture status is valid */ /* Check if picture status is valid */
if( (p_pic->i_status != RESERVED_PICTURE) && if( (p_pic->i_status != RESERVED_PICTURE) &&
(p_pic->i_status != RESERVED_DATED_PICTURE) && (p_pic->i_status != RESERVED_DATED_PICTURE) &&
......
...@@ -92,7 +92,7 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -92,7 +92,7 @@ int main( int i_argc, const char *ppsz_argv[] )
#endif #endif
#ifdef HAVE_PUTENV #ifdef HAVE_PUTENV
# ifdef DEBUG # ifndef NDEBUG
/* Activate malloc checking routines to detect heap corruptions. */ /* Activate malloc checking routines to detect heap corruptions. */
putenv( (char*)"MALLOC_CHECK_=2" ); putenv( (char*)"MALLOC_CHECK_=2" );
# ifdef __APPLE__ # ifdef __APPLE__
......
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