increased warning level; decreased warnings
proved necessary after the last session "taisei intelligence vs. stupid implicit declaration failure #9001"
This commit is contained in:
parent
b641019e03
commit
bb7c527acb
8 changed files with 21 additions and 9 deletions
|
@ -6,6 +6,10 @@ if(WIN32)
|
|||
add_definitions(-DRELATIVE)
|
||||
set(RELATIVE TRUE)
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "paths/native.h"
|
||||
|
||||
#include "taisei_err.h"
|
||||
|
||||
Config tconfig;
|
||||
int lineno;
|
||||
|
||||
|
@ -22,8 +23,10 @@
|
|||
|
||||
int yyerror(char *s) {
|
||||
errx(-1, "!- %d: %s", lineno, s);
|
||||
return 1;
|
||||
}
|
||||
|
||||
extern int yylex(void);
|
||||
extern FILE *yyin;
|
||||
%}
|
||||
|
||||
|
@ -62,7 +65,7 @@ file : line file
|
|||
line : line nl
|
||||
| key_key EQ key_val {
|
||||
if($1 > sizeof(tconfig.intval)/sizeof(int))
|
||||
errx("config index out of range"); // should not happen
|
||||
errx(-1, "config index out of range"); // should not happen
|
||||
tconfig.intval[$1] = $3;
|
||||
}
|
||||
| nl;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <stdio.h>
|
||||
#include "paths/native.h"
|
||||
#include "resource/resource.h"
|
||||
#include "taisei_err.h"
|
||||
|
||||
Global global;
|
||||
|
||||
|
|
|
@ -44,5 +44,6 @@ int collision_item(Item *p);
|
|||
void process_items();
|
||||
|
||||
void spawn_item(complex pos, Type type);
|
||||
void spawn_items(complex pos, int point, int power, int bomb, int life);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "global.h"
|
||||
#include "paths/native.h"
|
||||
#include <assert.h>
|
||||
#include "taisei_err.h"
|
||||
|
||||
struct Fonts _fonts;
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include "paths/native.h"
|
||||
#include "config.h"
|
||||
#include "taisei_err.h"
|
||||
|
||||
Resources resources;
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define TIMER(ptr) int *__timep = ptr; int _i, _ni;
|
||||
#define AT(t) if(*__timep == t)
|
||||
#define FROM_TO(start,end,step) _i = (*__timep - (start))/(step); if(*__timep >= (start) && *__timep <= (end) && !((*__timep - (start)) % (step)))
|
||||
#define TIMER(ptr) int *__timep = ptr; int _i = 0, _ni = 0;
|
||||
#define AT(t) _i = _ni= _i; if(*__timep == t)
|
||||
#define FROM_TO(start,end,step) _ni = _ni; _i = (*__timep - (start))/(step); if(*__timep >= (start) && *__timep <= (end) && !((*__timep - (start)) % (step)))
|
||||
#define FROM_TO_INT(start, end, step, dur, istep) \
|
||||
_i = (*__timep - (start))/(step+dur); _ni = ((*__timep - (start)) % (step+dur))/istep; \
|
||||
if(*__timep >= (start) && *__timep <= (end) && (*__timep - (start)) % ((dur) + (step)) <= dur && !((*__timep - (start)) % (istep)))
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include "stage0.h"
|
||||
|
||||
#include "../stage.h"
|
||||
#include "../global.h"
|
||||
#include "stage.h"
|
||||
#include "global.h"
|
||||
|
||||
Dialog *test_dialog() {
|
||||
Dialog *d = create_dialog("dialog/marisa", "dialog/youmu");
|
||||
|
@ -76,6 +76,7 @@ void stage0_draw() {
|
|||
glViewport(0,0,SCREEN_W,SCREEN_H);
|
||||
}
|
||||
|
||||
/*
|
||||
void cirno_intro(Boss *c, int time) {
|
||||
if(time == EVENT_BIRTH) {
|
||||
boss_add_waypoint(c->current, VIEWPORT_W/2-100 + 30I, 100);
|
||||
|
@ -99,7 +100,7 @@ void cirno_perfect_freeze(Boss *c, int time) {
|
|||
float g = rand()/(float)RAND_MAX;
|
||||
float b = rand()/(float)RAND_MAX;
|
||||
|
||||
// create_projectile2c("ball", c->pos, rgb(r, g, b), cirno_pfreeze_frogs, 4*cexp(I*rand()), add_ref(&global.boss))->parent=&global.boss;
|
||||
create_projectile2c("ball", c->pos, rgb(r, g, b), cirno_pfreeze_frogs, 4*cexp(I*rand()), add_ref(&global.boss))->parent=&global.boss;
|
||||
}
|
||||
|
||||
if(time > 160 && time < 220 && !(time % 7)) {
|
||||
|
@ -127,7 +128,7 @@ Boss *create_cirno() {
|
|||
|
||||
start_attack(cirno, cirno->attacks);
|
||||
return cirno;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
void stage0_enemy0(Enemy *e, int time) {
|
||||
|
|
Loading…
Reference in a new issue