Cleans up compile output, only half dozen warnings
This commit is contained in:
parent
2fac6bead3
commit
5944ae4b75
6
Makefile
6
Makefile
|
@ -10,15 +10,15 @@ DEPS := $(OBJS:.o=.d)
|
||||||
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
||||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||||
|
|
||||||
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP
|
CFLAGS ?= $(INC_FLAGS) -Wno-return-type -Wno-missing-declarations
|
||||||
|
|
||||||
$(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
|
$(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
|
||||||
$(CC) $(OBJS) -o $@ $(LDFLAGS)
|
$(CC) $(OBJS) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
# c source
|
# c source
|
||||||
$(BUILD_DIR)/%.c.o: %.c
|
$(BUILD_DIR)/%.c.o: %.c
|
||||||
$(MKDIR_P) $(dir $@)
|
@$(MKDIR_P) $(dir $@)
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "fwsetup.h"
|
#include "fwsetup.h"
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
#include "stdlib.h"
|
#include "brstdlib.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
|
@ -51,7 +51,7 @@ void BrFatal(const char *name, int line, const char *s, ...) {
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
va_start(args, s);
|
va_start(args, s);
|
||||||
n = BrSprintF(_diag_scratch, "FATAL %s:%d\n", name, line);
|
n = BrSprintf(_diag_scratch, "FATAL %s:%d\n", name, line);
|
||||||
BrVSprintf(&_diag_scratch[n], s, args);
|
BrVSprintf(&_diag_scratch[n], s, args);
|
||||||
if (fw.err->error == NULL) {
|
if (fw.err->error == NULL) {
|
||||||
BrAbort();
|
BrAbort();
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#include "stdlib.h"
|
#include "brstdlib.h"
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
// DOSPICK has "$Id: stdlib.c 2.4 1996/12/06 21:18:39 sam Exp $" for this. Do we want to implement these?
|
// DOSPICK has "$Id: stdlib.c 2.4 1996/12/06 21:18:39 sam Exp $" for this. Do we want to implement these?
|
||||||
char rscid[48];
|
char rscid[48];
|
|
@ -1,5 +1,9 @@
|
||||||
#ifndef _STDLIB_H_
|
/*
|
||||||
#define _STDLIB_H_
|
* Renamed from stdlib.h to avoid collisions with c std lib
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _BRSTDLIB_H_
|
||||||
|
#define _BRSTDLIB_H_
|
||||||
|
|
||||||
#include "dr_types.h"
|
#include "dr_types.h"
|
||||||
#include "br_types.h"
|
#include "br_types.h"
|
|
@ -1,5 +1,7 @@
|
||||||
#include "stdfile.h"
|
#include "stdfile.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
br_filesystem BrStdioFilesystem = {
|
br_filesystem BrStdioFilesystem = {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "stdmem.h"
|
#include "stdmem.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
char rscid[48];
|
char rscid[48];
|
||||||
br_allocator BrStdlibAllocator = {"malloc", BrStdlibAllocate, BrStdlibFree, BrStdlibInquire, BrStdlibAlign};
|
br_allocator BrStdlibAllocator = {"malloc", BrStdlibAllocate, BrStdlibFree, BrStdlibInquire, BrStdlibAlign};
|
||||||
|
|
|
@ -484,26 +484,6 @@ typedef void zs_order_table_traversal_cbfn(int, ot_vertex*, ot_vertex*, ot_verte
|
||||||
typedef void tS3_outlet_callback(tS3_outlet_ptr, tS3_sound_tag, tS3_termination_reason);
|
typedef void tS3_outlet_callback(tS3_outlet_ptr, tS3_sound_tag, tS3_termination_reason);
|
||||||
typedef void tS3_sample_filter(tS3_effect_tag, tS3_sound_tag);
|
typedef void tS3_sample_filter(tS3_effect_tag, tS3_sound_tag);
|
||||||
|
|
||||||
typedef struct div_t {
|
|
||||||
int quot;
|
|
||||||
int rem;
|
|
||||||
} div_t;
|
|
||||||
|
|
||||||
typedef struct ldiv_t {
|
|
||||||
long quot;
|
|
||||||
long rem;
|
|
||||||
} ldiv_t;
|
|
||||||
|
|
||||||
typedef struct _complex {
|
|
||||||
double x;
|
|
||||||
double y;
|
|
||||||
} _complex;
|
|
||||||
|
|
||||||
typedef struct complex {
|
|
||||||
double x;
|
|
||||||
double y;
|
|
||||||
} complex;
|
|
||||||
|
|
||||||
typedef struct exception {
|
typedef struct exception {
|
||||||
int type;
|
int type;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
Loading…
Reference in New Issue