Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0BA5D18441 for ; Fri, 28 Aug 2015 17:37:46 +0000 (UTC) Received: (qmail 37606 invoked by uid 500); 28 Aug 2015 17:37:45 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 37576 invoked by uid 500); 28 Aug 2015 17:37:45 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 37502 invoked by uid 99); 28 Aug 2015 17:37:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 17:37:45 +0000 Date: Fri, 28 Aug 2015 17:37:45 +0000 (UTC) From: "Neil Conway (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-3329) Unused hashmap::existsValue functions have incomplete code paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-3329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720297#comment-14720297 ] Neil Conway commented on MESOS-3329: ------------------------------------ If it is unused, I'd vote for removing it. > Unused hashmap::existsValue functions have incomplete code paths > ---------------------------------------------------------------- > > Key: MESOS-3329 > URL: https://issues.apache.org/jira/browse/MESOS-3329 > Project: Mesos > Issue Type: Bug > Components: stout > Reporter: Jan Schlicht > Priority: Trivial > Labels: easyfix, mesosphere > > `stout/hashmap.hpp` defines functions `hashmap::existsValue`. These return true if a certain value exists in the hashmap instance. The control flow of these functions doesn't cover the case that the value is not found, which should result in false. Right now the result in this case is undefined. > As the `existsValue` functions are never called this doesn't result in a compile error atm. > Possible solutions: > 1) Add `return false` > 2) Remove function -- This message was sent by Atlassian JIRA (v6.3.4#6332)