mirror of
https://github.com/Alcaro/Flips.git
synced 2026-04-25 07:21:57 -05:00
Fix warnings about size_t printf mismatch
This commit is contained in:
parent
ebdc448ad7
commit
e0de216430
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@ CFLAGS_gtk = -DFLIPS_GTK $(GTKFLAGS) $(GTKLIBS)
|
|||
CFLAGS_windows := -DFLIPS_WINDOWS -mwindows -lgdi32 -lcomdlg32 -lcomctl32 -luser32 -lkernel32 -lshell32 -ladvapi32
|
||||
CFLAGS_cli := -DFLIPS_CLI
|
||||
|
||||
CFLAGS_G = -fno-rtti -fno-exceptions -DNDEBUG
|
||||
CFLAGS_G = -fno-rtti -fno-exceptions -DNDEBUG -Wall
|
||||
|
||||
FNAME_gtk := flips
|
||||
FNAME_windows := flips.exe
|
||||
|
|
|
|||
|
|
@ -798,12 +798,12 @@ struct errorinfo ApplyPatchMem2(file* patch, struct mem inrom, bool verifyinput,
|
|||
//http://msdn.microsoft.com/en-us/library/vstudio/tcxf1dw6.aspx says %zX is not supported
|
||||
//this is true up to and including Windows Vista; 7 adds support for it
|
||||
//I could define it to "I", but my GCC does not acknowledge its legitimacy and throws bogus warnings
|
||||
//instead, let's just define it to size_t's underlying type: long unsigned int / long long unsigned in
|
||||
//instead, let's just define it to size_t's underlying type: unsigned int / long long unsigned int
|
||||
#ifdef _WIN32
|
||||
# ifdef _WIN64
|
||||
# define z "ll"
|
||||
# else
|
||||
# define z "l"
|
||||
# define z ""
|
||||
# endif
|
||||
#else
|
||||
# define z "z"
|
||||
|
|
@ -1159,7 +1159,7 @@ void usage()
|
|||
GUIClaimConsole();
|
||||
fputs(
|
||||
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
flipsversion "\n"
|
||||
flipsversion "\n"
|
||||
"usage:\n"
|
||||
" "
|
||||
#ifndef FLIPS_CLI
|
||||
|
|
@ -1187,7 +1187,7 @@ void usage()
|
|||
" delta-moremem is usually slightly (~3%) faster than delta, but uses about\n"
|
||||
" twice as much memory; it gives identical patches to delta\n"
|
||||
" linear is the fastest, but tends to give pretty big patches\n"
|
||||
" all BPS patchers can apply all patch styles, the only difference is filesize\n"
|
||||
" all BPS patchers can apply all patch styles, the only difference is file size\n"
|
||||
" and creation performance\n"
|
||||
"--exact: do not remove SMC headers when applying or creating a BPS patch\n"
|
||||
" not recommended, may affect patcher compatibility\n"
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ mingwver 64 || true # this is a script that sets the Wine PATH
|
|||
#if trying to make a 32bit Flips, add -Wl,--large-address-aware
|
||||
|
||||
#I am not completely sure if this is a good idea.
|
||||
FLAGS=$FLAGS' -fopenmp'
|
||||
FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/lib/gcc/x86_64-w64-mingw32/8.1.0/libgomp.a'
|
||||
FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/lib/gcc/x86_64-w64-mingw32/8.1.0/libgcc_eh.a'
|
||||
FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/x86_64-w64-mingw32/lib/libwinpthread.a'
|
||||
#FLAGS=$FLAGS' -fopenmp'
|
||||
#FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/lib/gcc/x86_64-w64-mingw32/8.1.0/libgomp.a'
|
||||
#FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/lib/gcc/x86_64-w64-mingw32/8.1.0/libgcc_eh.a'
|
||||
#FLAGS=$FLAGS' Z:/home/alcaro/tools/mingw64-8.1.0/x86_64-w64-mingw32/lib/libwinpthread.a'
|
||||
|
||||
echo 'Windows (1/3)'
|
||||
rm obj/* flips.exe; wine mingw32-make TARGET=windows OPTFLAGS="$FLAGS -fprofile-generate -lgcov"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user