diff --git a/libs/gib/regex.c b/libs/gib/regex.c index 1d6e19dc4..74a16b1a2 100644 --- a/libs/gib/regex.c +++ b/libs/gib/regex.c @@ -2849,7 +2849,7 @@ re_set_registers (bufp, regs, num_regs, starts, ends) { bufp->regs_allocated = REGS_UNALLOCATED; regs->num_regs = 0; - regs->start = regs->end = (regoff_t) 0; + regs->start = regs->end = 0; } } diff --git a/libs/util/cmem.c b/libs/util/cmem.c index 1f448481c..9b13a4b6e 100644 --- a/libs/util/cmem.c +++ b/libs/util/cmem.c @@ -175,9 +175,9 @@ line_free (memsuper_t *super, memblock_t *block, void *mem) for (l = &block->free_lines; *l; l = &(*l)->block_next) { line = *l; - if (line->block_next && line->block_next < line) { - *(int *)0 = 0; - } +// if (line->block_next && line->block_next < line) { +// *(int *)0 = 0; +// } if ((size_t) mem + size < (size_t) line) { // line to be freed is below the free line break; @@ -206,10 +206,10 @@ line_free (memsuper_t *super, memblock_t *block, void *mem) link_free_line (super, line); return; } - if ((size_t) mem >= (size_t) line - && (size_t) mem < (size_t) line + line->size) { - *(int *) 0 = 0; - } +// if ((size_t) mem >= (size_t) line +// && (size_t) mem < (size_t) line + line->size) { +// *(int *) 0 = 0; +// } line = 0; } memline_t *memline = (memline_t *) mem; @@ -326,9 +326,9 @@ cmemalloc (memsuper_t *super, size_t size) static void unlink_block (memblock_t *block) { - if (!block->free_lines || block->free_lines->block_next) { - *(int *) 0 = 0; - } +// if (!block->free_lines || block->free_lines->block_next) { +// *(int *) 0 = 0; +// } unlink_line (block->free_lines); if (block->next) { diff --git a/qw/source/cl_slist.c b/qw/source/cl_slist.c index ded6445c8..4d5b43513 100644 --- a/qw/source/cl_slist.c +++ b/qw/source/cl_slist.c @@ -324,7 +324,7 @@ gettokstart (char *str, int req, char delim) start++; } if (*start == '\0') - return '\0'; + return 0; while (tok < req) { // Stop when we get to the requested // token if (*++start == delim) { // Increment pointer and test @@ -334,7 +334,7 @@ gettokstart (char *str, int req, char delim) tok++; } if (*start == '\0') { - return '\0'; + return 0; } } return start; diff --git a/tools/qfvis/source/qfvis.c b/tools/qfvis/source/qfvis.c index 263e9ebb2..26164c30a 100644 --- a/tools/qfvis/source/qfvis.c +++ b/tools/qfvis/source/qfvis.c @@ -251,7 +251,7 @@ split_edge (const vec4f_t *points, const vec4f_t *dists, mid = (vec4f_t) ((vec4i_t) _mm_and_ps (y, (__m128) x) | (vec4i_t) _mm_and_ps (mid, (__m128) ~x)); #endif - if (isnan (mid[0])) *(int *) 0 = 0; +// if (isnan (mid[0])) *(int *) 0 = 0; return mid; }