fix build, declare strict checking correctly

This commit is contained in:
niels
2011-01-24 19:17:09 +01:00
parent e855b351ab
commit 6c27ffbb19
4 changed files with 21 additions and 18 deletions

View File

@@ -932,7 +932,7 @@ if test "x$enable_compile_warnings" != "xno" ; then
*) warnCFLAGS="" ;;
esac
if test "x$enable_compile_warnings" = "xyes" ; then
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wundef -Wshadow -Wbad-function-cast -Wconversion -Wpadded -Wunreachable-code -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual"
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wundef -Wshadow -Wbad-function-cast -Wconversion -Wpadded -Wunreachable-code -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Wall"
warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual"
fi
if test "x$enable_warnings_as_errors" = "xyes" ; then

View File

@@ -252,7 +252,7 @@ void freeframe_plug_retrieve_default_values( void *instance, void *fx_values )
{
void *base = NULL;
int error = vevo_property_get( instance, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -276,7 +276,7 @@ void freeframe_plug_retrieve_current_values( void *instance, void *fx_values )
{
void *base = NULL;
int error = vevo_property_get( instance, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -307,7 +307,7 @@ void freeframe_reverse_clone_parameter( void *instance, int seq, void *fx_values
{
void *base = NULL;
int error = vevo_property_get( instance, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -340,7 +340,7 @@ void freeframe_clone_parameter( void *instance, int seq, void *fx_values )
// put fx_values to freeframe
void *base = NULL;
int error = vevo_property_get( instance, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
assert(0); //@ this function must be dropped
#endif
@@ -384,7 +384,7 @@ void *freeframe_plug_init( void *plugin, int w, int h )
void *base = NULL;
int error = vevo_property_get( plugin, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -496,7 +496,7 @@ void freeframe_plug_deinit( void *plugin )
{
void *base = NULL;
int error = vevo_property_get( plugin, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == VEVO_NO_ERROR );
#endif
plugMainType *q = (plugMainType*) base;
@@ -527,7 +527,7 @@ void freeframe_plug_free( void *plugin )
int n = 0;
void *base = NULL;
int error = vevo_property_get( plugin, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
plugMainType *q = (plugMainType*) base;
@@ -573,19 +573,19 @@ int freeframe_plug_process( void *plugin, double timecode )
{
void *base = NULL;
int error = vevo_property_get( plugin, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
plugMainType *q = (plugMainType*) base;
int instance = 0;
error = vevo_property_get( plugin, "instance",0, &instance );
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
uint8_t *space = NULL;
error = vevo_property_get( plugin, "HOST_buffer",0,&space );
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -594,7 +594,7 @@ int freeframe_plug_process( void *plugin, double timecode )
VJFrame *output_frame = NULL;
error = vevo_property_get( plugin, "HOST_output", 0,&output_frame );
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
@@ -637,13 +637,14 @@ void freeframe_plug_param_f( void *plugin, int seq_no, void *dargs )
void *base = NULL;
error = vevo_property_get( plugin, "base", 0, &base);
#ifdef STRICT_CHECING
#ifdef STRICT_CHECKING
assert( error == LIVIDO_NO_ERROR );
#endif
int instance = 0;
error = vevo_property_get( plugin, "instance", 0, &instance );
#ifdef STRICT_CHECKING
assert( error == VEVO_NO_ERROR );
#endif
plugMainType *q = (plugMainType*) base;
q( FF_SETPARAMETER, &sps, instance );

View File

@@ -48,8 +48,9 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef STRICT_CHECKING
#include <assert.h>
#endif
#include <libplugger/plugload.h>
#include <libplugger/freeframe-loader.h>
#include <libplugger/frei0r-loader.h>

View File

@@ -17,9 +17,6 @@
*
*/
#include <config.h>
#ifdef STRICT_CHECKING
#include <assert.h>
#endif
#include <stdint.h>
#include <sys/types.h>
#include <stdlib.h>
@@ -29,6 +26,10 @@
#include <libvje/vje.h>
#include <libvje/internal.h>
#include <libplugger/plugload.h>
#ifdef STRICT_CHECKING
#include <assert.h>
#endif
extern vj_effect *vj_effects[];
#define VEVO_PLUG_LIVIDO 0xffaa