Skip to content

Instantly share code, notes, and snippets.

@derailius
Created May 25, 2020 22:51
Show Gist options
  • Save derailius/063a295d6ed5b8a610d25a26c7fd0fa6 to your computer and use it in GitHub Desktop.
Save derailius/063a295d6ed5b8a610d25a26c7fd0fa6 to your computer and use it in GitHub Desktop.
ntic -std=c99 -O3 -s skyconv.c n64graphics.c utils.c -lm -o skyconv -O2 -lm
In file included from n64cksum.c:5:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from n64cksum.c:5:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from libmio0.c:10:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from libmio0.c:10:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from n64graphics.c:14:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from n64graphics.c:14:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from skyconv.c:14:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from skyconv.c:14:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
skyconv.c: In function 'print_raw_data':
skyconv.c:266:29: warning: unknown conversion type character 'h' in format [-Wformat=]
266 | fprintf(cFile, "0x%hhX,", raw[i]);
| ^
skyconv.c:266:24: warning: too many arguments for format [-Wformat-extra-args]
266 | fprintf(cFile, "0x%hhX,", raw[i]);
| ^~~~~~~~~
skyconv.c:266:29: warning: unknown conversion type character 'h' in format [-Wformat=]
266 | fprintf(cFile, "0x%hhX,", raw[i]);
| ^
skyconv.c:266:24: warning: too many arguments for format [-Wformat-extra-args]
266 | fprintf(cFile, "0x%hhX,", raw[i]);
| ^~~~~~~~~
skyconv.c: In function 'write_skybox_c':
skyconv.c:282:28: warning: '_skybox.c' directive writing 9 bytes into a region of size between 4 and 259 [-Wformat-overflow=]
282 | sprintf(fBuffer, "%s/%s_skybox.c", output, skyboxName);
| ^~~~~~~~~
skyconv.c:282:5: note: 'sprintf' output 11 or more bytes (assuming 266) into a destination of size 260
282 | sprintf(fBuffer, "%s/%s_skybox.c", output, skyboxName);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libmio0.c:10:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from libmio0.c:10:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from n64graphics.c:14:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from n64graphics.c:14:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from libsm64.c:7:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from libsm64.c:7:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from utils.c:16:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from utils.c:16:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from utils.c:16:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from utils.c:16:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
|
In file included from utils.c:16:
utils.h:74: warning: "ERROR" redefined
74 | #define ERROR(...) fprintf(stderr, __VA_ARGS__)
|
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
from utils.h:10,
from utils.c:16:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75: note: this is the location of the previous definition
75 | #define ERROR 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment