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_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
|
||||
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP
|
||||
CFLAGS ?= $(INC_FLAGS) -Wno-return-type -Wno-missing-declarations
|
||||
|
||||
$(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
|
||||
$(CC) $(OBJS) -o $@ $(LDFLAGS)
|
||||
|
||||
# c source
|
||||
$(BUILD_DIR)/%.c.o: %.c
|
||||
$(MKDIR_P) $(dir $@)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||
@$(MKDIR_P) $(dir $@)
|
||||
@$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "diag.h"
|
||||
#include "fwsetup.h"
|
||||
#include "printf.h"
|
||||
#include "stdlib.h"
|
||||
#include "brstdlib.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
// Global variables
|
||||
|
@ -51,7 +51,7 @@ void BrFatal(const char *name, int line, const char *s, ...) {
|
|||
int n;
|
||||
|
||||
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);
|
||||
if (fw.err->error == NULL) {
|
||||
BrAbort();
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#include "stdlib.h"
|
||||
#include "brstdlib.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// 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?
|
||||
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 "br_types.h"
|
|
@ -1,5 +1,7 @@
|
|||
#include "stdfile.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// Global variables
|
||||
br_filesystem BrStdioFilesystem = {
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "stdmem.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// Global variables
|
||||
char rscid[48];
|
||||
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_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 {
|
||||
int type;
|
||||
char *name;
|
||||
|
|
Loading…
Reference in New Issue