]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - code.c
Merge pull request #117 from matthiaskrgr/master_PKGBUILD
[xonotic/gmqcc.git] / code.c
diff --git a/code.c b/code.c
index 5c62efb82603357a51ee39826a3d68ab45aeb34b..54eaed4892857471167b71687b8f7f51d608cdeb 100644 (file)
--- a/code.c
+++ b/code.c
@@ -249,6 +249,8 @@ static void code_stats(const char *filename, const char *lnofile, code_t *code,
         con_out("        name: %s\n",  lnofile);
         con_out("        size: %u (bytes)\n",  code_size_debug(code, code_header));
     }
+
+    con_out("\n");
 }
 
 /*
@@ -256,7 +258,8 @@ static void code_stats(const char *filename, const char *lnofile, code_t *code,
  * directly out to allocated memory. Which is actually very useful for the future library support
  * we're going to add.
  */
-bool code_write_memory(code_t *code, uint8_t **datmem, size_t *sizedat, uint8_t **lnomem, size_t *sizelno) {
+#if 0
+static bool code_write_memory(code_t *code, uint8_t **datmem, size_t *sizedat, uint8_t **lnomem, size_t *sizelno) GMQCC_UNUSED {
     prog_header_t code_header;
     uint32_t      offset  = 0;
 
@@ -319,6 +322,7 @@ bool code_write_memory(code_t *code, uint8_t **datmem, size_t *sizedat, uint8_t
     code_stats("<<memory>>", (lnomem) ? "<<memory>>" : NULL, code, &code_header);
     return true;
 }
+#endif /*!#if 0 reenable when ready to be used */
 #undef WRITE_CHUNK
 
 bool code_write(code_t *code, const char *filename, const char *lnofile) {