Kinda.. I dont know how to fix asprintf, so we ignore that for now. It is not our original codebase anyway Fixes #8 Signed-off-by: falkTX <falktx@falktx.com>tags/v1.3
@@ -30,6 +30,7 @@ | |||||
#include "Thread.hpp" | #include "Thread.hpp" | ||||
#pragma GCC diagnostic ignored "-Wunused-parameter" | #pragma GCC diagnostic ignored "-Wunused-parameter" | ||||
#pragma GCC diagnostic ignored "-Wunused-result" | |||||
namespace OSC | namespace OSC | ||||
{ | { | ||||
@@ -180,7 +180,7 @@ write_line ( const char *dir, const char *name, const char *value ) | |||||
fclose( fp ); | fclose( fp ); | ||||
} | } | ||||
/** write a single string to a file */ | |||||
/** read a single string from a file */ | |||||
char * | char * | ||||
read_line ( const char *dir, const char *name ) | read_line ( const char *dir, const char *name ) | ||||
{ | { | ||||
@@ -195,9 +195,8 @@ read_line ( const char *dir, const char *name ) | |||||
char *value = (char*)malloc( 512 ); | char *value = (char*)malloc( 512 ); | ||||
value[0] = 0; | |||||
fgets( value, 512, fp ); | |||||
if ( ! fgets( value, 512, fp ) ) | |||||
value[0] = 0; | |||||
fclose( fp ); | fclose( fp ); | ||||
@@ -25,6 +25,10 @@ | |||||
*/ | */ | ||||
#pragma GCC diagnostic ignored "-Wunused-parameter" | #pragma GCC diagnostic ignored "-Wunused-parameter" | ||||
#pragma GCC diagnostic ignored "-Wunused-result" | |||||
/* needed for asprintf */ | |||||
#define _GNU_SOURCE | |||||
#include <string.h> | #include <string.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
@@ -694,7 +698,7 @@ dequeue_new_port ( void ) | |||||
if ( sizeof( int ) == jack_ringbuffer_peek( port_ringbuffer, (char*)&size, sizeof( int ) ) ) | if ( sizeof( int ) == jack_ringbuffer_peek( port_ringbuffer, (char*)&size, sizeof( int ) ) ) | ||||
{ | { | ||||
if ( jack_ringbuffer_read_space( port_ringbuffer ) >= size ); | |||||
if ( jack_ringbuffer_read_space( port_ringbuffer ) >= size ) | |||||
{ | { | ||||
struct port_notification_record *pr = malloc( size ); | struct port_notification_record *pr = malloc( size ); | ||||
@@ -19,6 +19,7 @@ | |||||
/*******************************************************************************/ | /*******************************************************************************/ | ||||
#pragma GCC diagnostic ignored "-Wunused-parameter" | #pragma GCC diagnostic ignored "-Wunused-parameter" | ||||
#pragma GCC diagnostic ignored "-Wunused-result" | |||||
#define _MODULE_ "nsm-proxy" | #define _MODULE_ "nsm-proxy" | ||||
#define APP_NAME "NSM Proxy" | #define APP_NAME "NSM Proxy" | ||||
@@ -57,6 +57,7 @@ | |||||
#include <algorithm> | #include <algorithm> | ||||
#pragma GCC diagnostic ignored "-Wunused-parameter" | #pragma GCC diagnostic ignored "-Wunused-parameter" | ||||
#pragma GCC diagnostic ignored "-Wunused-result" | |||||
static OSC::Endpoint *osc_server; | static OSC::Endpoint *osc_server; | ||||
static lo_address gui_addr; | static lo_address gui_addr; | ||||
@@ -53,6 +53,8 @@ | |||||
#define APP_NAME "New-Session-Manager" | #define APP_NAME "New-Session-Manager" | ||||
#define APP_TITLE "New Session Manager" | #define APP_TITLE "New Session Manager" | ||||
#pragma GCC diagnostic ignored "-Wunused-result" | |||||
// static lo_address nsm_addr = NULL; | // static lo_address nsm_addr = NULL; | ||||
static time_t last_ping_response; | static time_t last_ping_response; | ||||