Cppcheck 2.13.0
/home/joels/Current/lispbm/src/extensions/ttf_backend.c:23:14: style: Variable 'c' is assigned a value that is never used. [unreadVariable]
  uint32_t c = 0;
             ^
/home/joels/Current/lispbm/src/extensions/schrift.c:343:37: style: The scope of the variable 'length' can be reduced. [variableScope]
  unsigned int numTables, numPairs, length, format, flags;
                                    ^
/home/joels/Current/lispbm/src/extensions/schrift.c:343:45: style: The scope of the variable 'format' can be reduced. [variableScope]
  unsigned int numTables, numPairs, length, format, flags;
                                            ^
/home/joels/Current/lispbm/src/extensions/schrift.c:343:53: style: The scope of the variable 'flags' can be reduced. [variableScope]
  unsigned int numTables, numPairs, length, format, flags;
                                                    ^
/home/joels/Current/lispbm/src/extensions/schrift.c:521:9: style: The scope of the variable 'pt' can be reduced. [variableScope]
  Point pt;
        ^
/home/joels/Current/lispbm/src/extensions/schrift.c:535:9: style: The scope of the variable 'pt' can be reduced. [variableScope]
  Point pt;
        ^
/home/joels/Current/lispbm/src/extensions/schrift.c:655:33: style: The scope of the variable 'sample' can be reduced. [variableScope]
  const uint8_t *bytes = base, *sample;
                                ^
/home/joels/Current/lispbm/src/extensions/schrift.c:656:37: style: The scope of the variable 'mid' can be reduced. [variableScope]
  size_t low = 0, high = nmemb - 1, mid;
                                    ^
/home/joels/Current/lispbm/src/extensions/schrift.c:916:31: style: The scope of the variable 'boundary' can be reduced. [variableScope]
  uint_fast32_t hmtx, offset, boundary;
                              ^
/home/joels/Current/lispbm/src/extensions/schrift.c:1077:47: style: The scope of the variable 'cur' can be reduced. [variableScope]
  uint_least16_t looseEnd, beg, ctrl, center, cur;
                                              ^
/home/joels/Current/lispbm/src/extensions/schrift.c:1236:23: style: The scope of the variable 'glyph' can be reduced. [variableScope]
  unsigned int flags, glyph, basePoint;
                      ^
/home/joels/Current/lispbm/src/extensions/schrift.c:519:60: style: Parameter 'trf' can be declared as const array [constParameter]
transform_points(unsigned int numPts, Point *points, float trf[6])
                                                           ^
/home/joels/Current/lispbm/src/extensions/schrift.c:722:31: style: Parameter 'tag' can be declared as const array [constParameter]
gettable(SFT_Font *font, char tag[4], uint_fast32_t *offset)
                              ^
/home/joels/Current/lispbm/src/extensions/schrift.c:743:11: style: Variable 'key' can be declared as const array [constVariable]
  uint8_t key[2] = { (uint8_t) (charCode >> 8), (uint8_t) charCode };
          ^
/home/joels/Current/lispbm/utils/crypto.c:94:25: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment]
  uint64_t size_in_bits = n * 8; // size of payload in bits.
                        ^
/home/joels/Current/lispbm/src/extensions/ttf_extensions.c:331:11: style: The scope of the variable 'y_scale' can be reduced. [variableScope]
    float y_scale = x_scale;
          ^
/home/joels/Current/lispbm/src/extensions/ttf_extensions.c:669:11: style: The scope of the variable 'y_n' can be reduced. [variableScope]
    float y_n = y;
          ^
/home/joels/Current/lispbm/src/eval_cps.c:2142:13: style: The scope of the variable 'rest_conds' can be reduced. [variableScope]
  lbm_value rest_conds = curr;
            ^
/home/joels/Current/lispbm/src/eval_cps.c:3343:15: style: The scope of the variable 'cmp_env' can be reduced. [variableScope]
    lbm_value cmp_env = cl2;
              ^
/home/joels/Current/lispbm/src/eval_cps.c:3414:15: style: The scope of the variable 'cmp_env' can be reduced. [variableScope]
    lbm_value cmp_env = cl2;
              ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:3205:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]
    object = NULL;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:882:45: style: Condition '(input_end-input_pointer)<1' is always false [knownConditionTrueFalse]
            if ((input_end - input_pointer) < 1)
                                            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:872:26: note: Assuming that condition 'input_pointer<input_end' is not redundant
    while (input_pointer < input_end)
                         ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:882:45: note: Condition '(input_end-input_pointer)<1' is always false
            if ((input_end - input_pointer) < 1)
                                            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:826:42: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    const unsigned char *input_pointer = buffer_at_offset(input_buffer) + 1;
                                         ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1736:13: note: Assuming that condition 'input_buffer!=NULL' is not redundant
        if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':'))
            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1726:41: note: Calling function 'parse_string', 2nd argument 'input_buffer' value is 0
        if (!parse_string(current_item, input_buffer))
                                        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:826:42: note: Null pointer dereference
    const unsigned char *input_pointer = buffer_at_offset(input_buffer) + 1;
                                         ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:827:38: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    const unsigned char *input_end = buffer_at_offset(input_buffer) + 1;
                                     ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1736:13: note: Assuming that condition 'input_buffer!=NULL' is not redundant
        if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':'))
            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1726:41: note: Calling function 'parse_string', 2nd argument 'input_buffer' value is 0
        if (!parse_string(current_item, input_buffer))
                                        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:827:38: note: Null pointer dereference
    const unsigned char *input_end = buffer_at_offset(input_buffer) + 1;
                                     ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:832:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    if (buffer_at_offset(input_buffer)[0] != '\"')
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1736:13: note: Assuming that condition 'input_buffer!=NULL' is not redundant
        if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':'))
            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1726:41: note: Calling function 'parse_string', 2nd argument 'input_buffer' value is 0
        if (!parse_string(current_item, input_buffer))
                                        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:832:9: note: Null pointer dereference
    if (buffer_at_offset(input_buffer)[0] != '\"')
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1502:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    if (input_buffer->depth >= CJSON_NESTING_LIMIT)
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1516:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ']'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1502:9: note: Null pointer dereference
    if (input_buffer->depth >= CJSON_NESTING_LIMIT)
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1506:5: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    input_buffer->depth++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1516:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ']'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1506:5: note: Null pointer dereference
    input_buffer->depth++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1508:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    if (buffer_at_offset(input_buffer)[0] != '[')
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1516:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ']'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1508:9: note: Null pointer dereference
    if (buffer_at_offset(input_buffer)[0] != '[')
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1514:5: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    input_buffer->offset++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1516:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == ']'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1514:5: note: Null pointer dereference
    input_buffer->offset++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1525:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
        input_buffer->offset--;
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1523:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (cannot_access_at_index(input_buffer, 0))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1525:9: note: Null pointer dereference
        input_buffer->offset--;
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1667:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    if (input_buffer->depth >= CJSON_NESTING_LIMIT)
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1673:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '{'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1667:9: note: Null pointer dereference
    if (input_buffer->depth >= CJSON_NESTING_LIMIT)
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1671:5: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    input_buffer->depth++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1673:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '{'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1671:5: note: Null pointer dereference
    input_buffer->depth++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1678:5: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    input_buffer->offset++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1680:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (can_access_at_index(input_buffer, 0) && (buffer_at_offset(input_buffer)[0] == '}'))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1678:5: note: Null pointer dereference
    input_buffer->offset++;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1688:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
        input_buffer->offset--;
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1686:9: note: Assuming that condition 'input_buffer!=NULL' is not redundant
    if (cannot_access_at_index(input_buffer, 0))
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1688:9: note: Null pointer dereference
        input_buffer->offset--;
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1693:5: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
    input_buffer->offset--;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1718:13: note: Assuming that condition 'input_buffer!=NULL' is not redundant
        if (cannot_access_at_index(input_buffer, 1))
            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1693:5: note: Null pointer dereference
    input_buffer->offset--;
    ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1724:9: warning: Either the condition 'input_buffer!=NULL' is redundant or there is possible null pointer dereference: input_buffer. [nullPointerRedundantCheck]
        input_buffer->offset++;
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1736:13: note: Assuming that condition 'input_buffer!=NULL' is not redundant
        if (cannot_access_at_index(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':'))
            ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1724:9: note: Null pointer dereference
        input_buffer->offset++;
        ^
repl.c:2656:15: style: Condition 'str==NULL' is always false [knownConditionTrueFalse]
      if (str == NULL) terminate_repl(REPL_EXIT_SUCCESS);
              ^
repl.c:762:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
        printf("Warning: The lbm_memory must be a multiple of %d bytes in size\n", size_single_block_bytes);
        ^
repl.c:764:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
        printf("Using next multiple of %d: %d\n", size_single_block_bytes, sizebytes);
        ^
repl.c:764:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
        printf("Using next multiple of %d: %d\n", size_single_block_bytes, sizebytes);
        ^
/home/joels/Current/lispbm/utils/mcp/cJSON.c:1598:19: style: Variable 'length' is assigned a value that is never used. [unreadVariable]
    size_t length = 0;
                  ^
nofile:0:0: information: Active checkers: 102/592 (use --checkers-report=<filename> to see details) [checkersReport]

