mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Reworked Toy_String as a union, enabled -Wpedantic
Toy now fits into the C spec. Fixed #158 Addendum: MacOS test caught an error: error: a function declaration without a prototype is deprecated in all versions of C That took 3 attempts to fix correctly. Addendum: 'No new line at the end of file' are you shitting me?
This commit is contained in:
@@ -8,7 +8,7 @@ static unsigned int hashUInt(unsigned int x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
//print the index/hash pairs
|
||||
for (unsigned int i = 0; i < 100; i++) {
|
||||
unsigned int h = hashUInt(i);
|
||||
|
||||
@@ -8,7 +8,7 @@ static unsigned int hashUInt(unsigned int x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
//find the first number with a specific hash, then print the c-code
|
||||
for (unsigned int h = 0; h < 20; h++) {
|
||||
for (unsigned int i = 0; i < 100; i++) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#compiler settings
|
||||
CC=gcc
|
||||
CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpointer-arith -Wformat=2
|
||||
CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpedantic -Wformat=2
|
||||
LIBS+=-lm
|
||||
LDFLAGS+=
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ int getFileName(char* dest, const char* src) {
|
||||
return len;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
//check the platform
|
||||
printf("Platform: ");
|
||||
#if defined(__linux__)
|
||||
|
||||
Reference in New Issue
Block a user