{"push_id":968772454,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"8b2afe54e46681c2572a0697f58fe1dbb8fce823","before":"c6643a4dcc3c98b6cd264388fdb0bb02908131ce","commits":[{"sha":"88f06412e114a2db74879efdec3a19d57b3e525b","author":{"email":"fac221c239e64397703559a2e77447c2e3f511c6@gmail.com","name":"TAKANO Mitsuhiro"},"message":"fix warnings caused by compiling world.c\n\nfix to remove `variable 'object' is used uninitialized` warnings.\n\n```\ngcc -mtune=native -Wall -c world.c\nworld.c:753:6: warning: variable 'object' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:776:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:753:2: note: remove the 'if' if its condition is always false\n  ...if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:753:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:776:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:753:6: note: remove the '||' if its condition is always false\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY ||...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:753:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:776:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:753:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:753:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:776:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:753:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:750:20: note: initialize the variable 'object' to silence this warning\n        ctr_object* object;\n                          ^\n                           = NULL\nworld.c:790:6: warning: variable 'object' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:813:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:790:2: note: remove the 'if' if its condition is always false\n  ...if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:790:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:813:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:790:6: note: remove the '||' if its condition is always false\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY ||...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:790:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:813:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:790:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:790:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:813:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:790:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:786:20: note: initialize the variable 'object' to silence this warning\n        ctr_object* object;\n                          ^\n                           = NULL\nworld.c:827:6: warning: variable 'object' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:850:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:827:2: note: remove the 'if' if its condition is always false\n  ...if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY || o->info.type == CTR_OBJECT_TYPE_OTNIL) {\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:827:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:850:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:827:6: note: remove the '||' if its condition is always false\n  ...o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_TYPE_OTARRAY ||...\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:827:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:850:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:827:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:827:6: warning: variable 'object' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:850:9: note: uninitialized use occurs here\n        return object;\n               ^~~~~~\nworld.c:827:6: note: remove the '||' if its condition is always false\n        if (o->info.type == CTR_OBJECT_TYPE_OTOBJECT || o->info.type == CTR_OBJECT_TYPE_OTMISC || o->info.type == CTR_OBJECT_...\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nworld.c:822:20: note: initialize the variable 'object' to silence this warning\n        ctr_object* object;\n                          ^\n                           = NULL\n12 warnings generated.\n```","distinct":true,"url":"https://api.github.com/repos/gabordemooij/citrine/commits/88f06412e114a2db74879efdec3a19d57b3e525b"},{"sha":"8b2afe54e46681c2572a0697f58fe1dbb8fce823","author":{"email":"9779cef0f64bf6fee6c6de0bd9f8a60ce458985e@redbeanphp.com","name":"Gabor de Mooij"},"message":"Merge pull request #40 from takano32/remove-warnings-caused-by-compiling-world.c\n\nfix warnings caused by compiling world.c","distinct":true,"url":"https://api.github.com/repos/gabordemooij/citrine/commits/8b2afe54e46681c2572a0697f58fe1dbb8fce823"}]}