function logWarning(message, position) {
      results.push({
        level: 'WARNING',
        filename: filename,
        position: position,
        message: message,
      });
    }
Simple wrapper that adds a warning to the list

@param {string} message The message to add.
@param {object} position The line number the warning occured on.