mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-12 02:40:02 +01:00
fix build, declare strict checking correctly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user