Add newlines to the end of files without them; enable warnings on compile

This commit is contained in:
John Alanbrook 2022-11-25 13:12:31 +00:00
parent ac0ad8efc2
commit 998cb11218
22 changed files with 23 additions and 22 deletions

View file

@ -47,7 +47,8 @@ eobjects != $(call rm,$(eobjects),sqlite pl_mpeg_extract_frames pl_mpeg_player y
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
COM != git rev-parse --short HEAD

View file

@ -629,4 +629,4 @@ void dsp_bitcrush(void *p, short *out, int n)
for (int j = 0; j < CHANNELS; j++)
out[i*CHANNELS+j] = (out[i*CHANNELS+j] | 0xFF); /* Mask out the lower 8 bits */
}
}
}

View file

@ -153,4 +153,4 @@ void dsp_mono(void *p, short *out, int n);
void dsp_bitcrush(void *p, short *out, int n);
#endif
#endif

View file

@ -92,4 +92,4 @@ void editor_save_projects()
FILE *f = fopen("projects.yugh", "w");
vec_store(projects, f);
fclose(f);
}
}

View file

@ -15,4 +15,4 @@ void editor_proj_select_gui();
void editor_import_project(char *path);
void editor_make_project(char *path);
#endif
#endif

View file

@ -298,4 +298,4 @@ void object_gui(struct gameobject *go)
if (n >= 0)
gameobject_delcomponent(go, n);
}
}

View file

@ -132,4 +132,4 @@ int action_up(int scancode)
}
return !found;
}
}

View file

@ -37,4 +37,4 @@ void bus_fill_buffers(short *master, int n) {
master[i] += bus[j].buf[i];
}
}
}
}

View file

@ -26,4 +26,4 @@ void bus_fill_buffers(short *master, int n);
void bus_free(struct bus *bus);
#endif
#endif

View file

@ -3,4 +3,4 @@
void ffi_load();
#endif
#endif

View file

@ -122,4 +122,4 @@ void music_pause()
void sound_play()
{
}
}

View file

@ -16,4 +16,4 @@ extern float music_pan;
void play_song(const char *midi, const char *sf);
void dsp_midi_fillbuf(struct dsp_midi_song *song, void *out, int n);
#endif
#endif

View file

@ -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_prop_float(LABEL, MIN, VAL, MAX, STEP, DRAG) nk_property_float(ctx, LABEL, MIN, VAL, MAX, STEP, DRAG)
#endif
#endif

View file

@ -73,4 +73,4 @@ void comp_draw_debug(struct component *c) {
void comp_draw_gui(struct component *c) {
c->draw_gui(c->data);
}
}

View file

@ -64,4 +64,4 @@ void script_call_sym(mrb_sym sym)
int script_has_sym(mrb_sym sym) {
return mrb_respond_to(mrb, obj, sym);
}
}

View file

@ -329,4 +329,4 @@ float pct2mult(float pct)
if (pct <= 0) return 0.f;
return pow(10, 0.5*log2(pct));
}
}

View file

@ -91,4 +91,4 @@ void staticactor_gui(struct mStaticActor *sa)
}
}
}
}

View file

@ -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
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
*/

View file

@ -415,4 +415,4 @@ enum STBVorbisError
//
// HEADER ENDS HERE
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

View file

@ -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 arrwalk(void *arr, void (*fn)(void *data));
#endif
#endif

View file

@ -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, "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);
}
}

View file

@ -296,4 +296,4 @@ void window_renderall() {
//arrwalk(windows, window_render);
for (int i = 0; i < arrlen(windows); i++)
window_render(&windows[i]);
}
}