Add newlines to the end of files without them; enable warnings on compile
This commit is contained in:
parent
ac0ad8efc2
commit
998cb11218
3
Makefile
3
Makefile
|
@ -47,7 +47,8 @@ eobjects != $(call rm,$(eobjects),sqlite pl_mpeg_extract_frames pl_mpeg_player y
|
||||||
|
|
||||||
includeflag != $(call prefix,$(edirs),-I)
|
includeflag != $(call prefix,$(edirs),-I)
|
||||||
|
|
||||||
WARNING_FLAGS = -Wall -pedantic #-Wno-incompatible-function-pointer-types -Wunsupported -Wall -Wextra -Wwrite-strings -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Wno-incompatible-function-pointer-types -Wno-gnu-statement-expression -Wno-complex-component-init -pedantic
|
WARNING_FLAGS = #-Wall -pedantic -Wunsupported -Wextra -Wwrite-strings
|
||||||
|
NO_WARNING_FLAGS = -Wno-incompatible-function-pointer-types -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Wno-incompatible-function-pointer-types -Wno-gnu-statement-expression -Wno-complex-component-init
|
||||||
|
|
||||||
SEM = 0.0.1
|
SEM = 0.0.1
|
||||||
COM != git rev-parse --short HEAD
|
COM != git rev-parse --short HEAD
|
||||||
|
|
|
@ -629,4 +629,4 @@ void dsp_bitcrush(void *p, short *out, int n)
|
||||||
for (int j = 0; j < CHANNELS; j++)
|
for (int j = 0; j < CHANNELS; j++)
|
||||||
out[i*CHANNELS+j] = (out[i*CHANNELS+j] | 0xFF); /* Mask out the lower 8 bits */
|
out[i*CHANNELS+j] = (out[i*CHANNELS+j] | 0xFF); /* Mask out the lower 8 bits */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,4 +153,4 @@ void dsp_mono(void *p, short *out, int n);
|
||||||
|
|
||||||
void dsp_bitcrush(void *p, short *out, int n);
|
void dsp_bitcrush(void *p, short *out, int n);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -92,4 +92,4 @@ void editor_save_projects()
|
||||||
FILE *f = fopen("projects.yugh", "w");
|
FILE *f = fopen("projects.yugh", "w");
|
||||||
vec_store(projects, f);
|
vec_store(projects, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,4 @@ void editor_proj_select_gui();
|
||||||
void editor_import_project(char *path);
|
void editor_import_project(char *path);
|
||||||
void editor_make_project(char *path);
|
void editor_make_project(char *path);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -298,4 +298,4 @@ void object_gui(struct gameobject *go)
|
||||||
if (n >= 0)
|
if (n >= 0)
|
||||||
gameobject_delcomponent(go, n);
|
gameobject_delcomponent(go, n);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,4 +132,4 @@ int action_up(int scancode)
|
||||||
}
|
}
|
||||||
|
|
||||||
return !found;
|
return !found;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,4 @@ void bus_fill_buffers(short *master, int n) {
|
||||||
master[i] += bus[j].buf[i];
|
master[i] += bus[j].buf[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,4 +26,4 @@ void bus_fill_buffers(short *master, int n);
|
||||||
void bus_free(struct bus *bus);
|
void bus_free(struct bus *bus);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
void ffi_load();
|
void ffi_load();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -122,4 +122,4 @@ void music_pause()
|
||||||
void sound_play()
|
void sound_play()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,4 +16,4 @@ extern float music_pan;
|
||||||
void play_song(const char *midi, const char *sf);
|
void play_song(const char *midi, const char *sf);
|
||||||
void dsp_midi_fillbuf(struct dsp_midi_song *song, void *out, int n);
|
void dsp_midi_fillbuf(struct dsp_midi_song *song, void *out, int n);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -28,4 +28,4 @@ int nuke_btn(const char *lbl);
|
||||||
#define nuke_labelf(STR, ...) nk_labelf(ctx, NK_TEXT_LEFT, STR, __VA_ARGS__)
|
#define nuke_labelf(STR, ...) nk_labelf(ctx, NK_TEXT_LEFT, STR, __VA_ARGS__)
|
||||||
#define nuke_prop_float(LABEL, MIN, VAL, MAX, STEP, DRAG) nk_property_float(ctx, LABEL, MIN, VAL, MAX, STEP, DRAG)
|
#define nuke_prop_float(LABEL, MIN, VAL, MAX, STEP, DRAG) nk_property_float(ctx, LABEL, MIN, VAL, MAX, STEP, DRAG)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -73,4 +73,4 @@ void comp_draw_debug(struct component *c) {
|
||||||
|
|
||||||
void comp_draw_gui(struct component *c) {
|
void comp_draw_gui(struct component *c) {
|
||||||
c->draw_gui(c->data);
|
c->draw_gui(c->data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,4 +64,4 @@ void script_call_sym(mrb_sym sym)
|
||||||
|
|
||||||
int script_has_sym(mrb_sym sym) {
|
int script_has_sym(mrb_sym sym) {
|
||||||
return mrb_respond_to(mrb, obj, sym);
|
return mrb_respond_to(mrb, obj, sym);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,4 +329,4 @@ float pct2mult(float pct)
|
||||||
if (pct <= 0) return 0.f;
|
if (pct <= 0) return 0.f;
|
||||||
|
|
||||||
return pow(10, 0.5*log2(pct));
|
return pow(10, 0.5*log2(pct));
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,4 +91,4 @@ void staticactor_gui(struct mStaticActor *sa)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1892,4 +1892,4 @@ AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -415,4 +415,4 @@ enum STBVorbisError
|
||||||
//
|
//
|
||||||
// HEADER ENDS HERE
|
// HEADER ENDS HERE
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -27,4 +27,4 @@ void timer_settime(struct timer *t, double interval);
|
||||||
void *arrfind(void *arr, int (*valid)(void *arr, void *cmp), void *cmp);
|
void *arrfind(void *arr, int (*valid)(void *arr, void *cmp), void *cmp);
|
||||||
void arrwalk(void *arr, void (*fn)(void *data));
|
void arrwalk(void *arr, void (*fn)(void *data));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -50,4 +50,4 @@ void trans_drawgui(struct mTransform *T)
|
||||||
nk_property_float3(ctx, "Position", -1000.f, T->position, 1000.f, 1.f, 1.f);
|
nk_property_float3(ctx, "Position", -1000.f, T->position, 1000.f, 1.f, 1.f);
|
||||||
nk_property_float3(ctx, "Rotation", 0.f, T->rotation, 360.f, 1.f, 0.1f);
|
nk_property_float3(ctx, "Rotation", 0.f, T->rotation, 360.f, 1.f, 0.1f);
|
||||||
nk_property_float(ctx, "Scale", 0.f, &T->scale, 1000.f, 0.1f, 0.1f);
|
nk_property_float(ctx, "Scale", 0.f, &T->scale, 1000.f, 0.1f, 0.1f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -296,4 +296,4 @@ void window_renderall() {
|
||||||
//arrwalk(windows, window_render);
|
//arrwalk(windows, window_render);
|
||||||
for (int i = 0; i < arrlen(windows); i++)
|
for (int i = 0; i < arrlen(windows); i++)
|
||||||
window_render(&windows[i]);
|
window_render(&windows[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue