Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-23 11:16:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-23 11:20:20 +0300
commitaf5cfa7544cb53c20a88bc880606e91164859239 (patch)
treecc91595bf1d6898c8d801ff5c405a479d2e7ff30 /source/blender/makesdna/intern
parent9d309b7978717f0c79899c62fe13a8c0a40dad89 (diff)
Cleanup: quiet undeclared variable warning
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/makesdna.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index 1607e5e15a7..cd38ba1cb21 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -141,7 +141,7 @@ static const char *includefiles[] = {
/** \name Variables
* \{ */
-MemArena *mem_arena = NULL;
+static MemArena *mem_arena = NULL;
static int maxdata = 500000, maxnr = 50000;
static int nr_names = 0;
@@ -1349,6 +1349,7 @@ int main(int argc, char **argv)
baseDirectory = BASE_HEADER;
}
+ fprintf(file_dna, "extern const unsigned char DNAstr[];\n");
fprintf(file_dna, "const unsigned char DNAstr[] = {\n");
if (make_structDNA(baseDirectory, file_dna, file_dna_offsets)) {
/* error */
@@ -1359,6 +1360,7 @@ int main(int argc, char **argv)
}
else {
fprintf(file_dna, "};\n");
+ fprintf(file_dna, "extern const int DNAlen;\n");
fprintf(file_dna, "const int DNAlen = sizeof(DNAstr);\n");
}
}