Re-apply part of r4647. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4681 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2014-10-25 03:36:50 +00:00
parent 8934226bb2
commit e087ffabfc

View file

@ -152,8 +152,10 @@ void copybufreverse(const void *S, void *D, int32_t c)
#elif defined(__GNUC__) && defined(GEKKO)
// naked function (no prolog/epilog)
// FIXME: this function produces unused parameter warnings and a missing return warning
int32_t scale(int32_t a, int32_t d, int32_t c)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wreturn-type"
int32_t scale(int32_t a, int32_t d, int32_t c) ATTRIBUTE((naked));
{
// return ((int64_t)a * d) / c;
@ -232,6 +234,7 @@ int32_t scale(int32_t a, int32_t d, int32_t c)
" blr\n"
);
}
#pragma GCC diagnostic pop
void clearbufbyte(void *d, int32_t c, int32_t a)
{