mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14: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:
@@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
|
||||
int test_scope_allocation() {
|
||||
int test_scope_allocation(void) {
|
||||
//allocate and free a scope
|
||||
{
|
||||
//setup
|
||||
@@ -297,7 +297,7 @@ int test_scope_allocation() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int test_scope_elements() {
|
||||
int test_scope_elements(void) {
|
||||
//allocate, access and assign an element
|
||||
{
|
||||
//setup
|
||||
@@ -489,7 +489,7 @@ int test_scope_elements() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
//run each test set, returning the total errors given
|
||||
int total = 0, res = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user