]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
qcvm didn't compile since moving the compile messages to con.c due to undefined refer...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 28 Nov 2012 18:16:35 +0000 (19:16 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 28 Nov 2012 18:16:35 +0000 (19:16 +0100)
exec.c

diff --git a/exec.c b/exec.c
index 5898428747c1fcd724f27d979224d90e0571a48c..8dc9e3cb17de0fb8575eb85b01e2d3ab5b632a1a 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -633,6 +633,8 @@ const char *type_name[TYPE_COUNT] = {
 
 bool        opts_debug    = false;
 bool        opts_memchk   = false;
+uint32_t    opts_warn [1 + (COUNT_WARNINGS / 32)];
+bool        opts_werror   = false;
 
 typedef struct {
     int         vtype;
@@ -890,8 +892,9 @@ int main(int argc, char **argv)
     prog->builtins_count = qc_builtins_count;
 
     if (opts_info) {
-        printf("Program's system-checksum = 0x%04x\n", (int)prog->crc16);
-        printf("Entity field space: %i\n", (int)prog->entityfields);
+        printf("Program's system-checksum = 0x%04x\n", (unsigned int)prog->crc16);
+        printf("Entity field space: %u\n", (unsigned int)prog->entityfields);
+        printf("Globals: %u\n", (unsigned int)vec_size(prog->globals));
     }
 
     for (i = 1; i < vec_size(prog->functions); ++i) {