fix some complier warnings and add -Wundef to CMake's default GCC warnings.

This commit is contained in:
2011-09-05 23:40:52 +00:00
parent 0c992c73a1
commit 0991bed413
7 changed files with 17 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ void ntreeInitTypes(bNodeTree *ntree)
ntree->init |= NTREE_TYPE_INIT;
}
static bNodeSocket *make_socket(bNodeTree *ntree, int in_out, const char *name, int type)
static bNodeSocket *make_socket(bNodeTree *UNUSED(ntree), int in_out, const char *name, int type)
{
bNodeSocketType *stype= ntreeGetSocketType(type);
bNodeSocket *sock;