mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix harmless warnings in the Build tools.
git-svn-id: https://svn.eduke32.com/eduke32@3097 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f51bdc2faa
commit
7e4e760e9c
3 changed files with 5 additions and 5 deletions
|
@ -186,7 +186,7 @@ endif
|
||||||
|
|
||||||
|
|
||||||
# compiler flags etc.
|
# compiler flags etc.
|
||||||
BASECONLYFLAGS=-Wimplicit
|
BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
|
||||||
BASECXXFLAGS= -fno-exceptions -fno-rtti
|
BASECXXFLAGS= -fno-exceptions -fno-rtti
|
||||||
BASEASFLAGS=-s #-g
|
BASEASFLAGS=-s #-g
|
||||||
BASELDFLAGS=
|
BASELDFLAGS=
|
||||||
|
@ -269,7 +269,7 @@ else
|
||||||
W_NO_UNUSED_RESULT :=
|
W_NO_UNUSED_RESULT :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CWARNS := -W -Wall -Wdeclaration-after-statement -Werror-implicit-function-declaration \
|
CWARNS := -W -Wall -Werror-implicit-function-declaration \
|
||||||
-Wpointer-arith \
|
-Wpointer-arith \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
#-Wstrict-prototypes \
|
#-Wstrict-prototypes \
|
||||||
|
|
|
@ -146,7 +146,7 @@ static int buildkeytranslationtable(void)
|
||||||
|
|
||||||
#undef main
|
#undef main
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -62,13 +62,13 @@ private:
|
||||||
|
|
||||||
void writeShort(ofstream &ofs, short s)
|
void writeShort(ofstream &ofs, short s)
|
||||||
{
|
{
|
||||||
char d[2] = { s&255, (s>>8)&255 };
|
char d[2] = { static_cast<char>(s&255), static_cast<char>((s>>8)&255) };
|
||||||
ofs.write(d, 2);
|
ofs.write(d, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeLong(ofstream &ofs, long l)
|
void writeLong(ofstream &ofs, long l)
|
||||||
{
|
{
|
||||||
char d[4] = { l&255, (l>>8)&255, (l>>16)&255, (l>>24)&255 };
|
char d[4] = { static_cast<char>(l&255), static_cast<char>((l>>8)&255), static_cast<char>((l>>16)&255), static_cast<char>((l>>24)&255) };
|
||||||
ofs.write(d, 4);
|
ofs.write(d, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue