From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 526316DE0196 for ; Thu, 4 Oct 2018 02:45:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.394 X-Spam-Level: X-Spam-Status: No, score=0.394 tagged_above=-999 required=5 tests=[AWL=-0.260, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZNjgFZcZPRsW for ; Thu, 4 Oct 2018 02:45:54 -0700 (PDT) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by arlo.cworth.org (Postfix) with ESMTPS id E005C6DE0195 for ; Thu, 4 Oct 2018 02:45:53 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id d2-v6so4733619wro.7 for ; Thu, 04 Oct 2018 02:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ErqvCG/Azmr72BGsCkp6WrEy+06cfDjMYZox0E/958s=; b=nPILme4hcfV/hdKC1yLDmdX8SDzFVhCR+ap8Nt5z4zwHBbPjcYfD0ghhYjv5t87iLu L2Rmgw5WHifYNzQjs0jLWkxL8FnZga9KlYB7xiS86NQuvOLcg9MyUhYN+/BiT4xAMV5p L0sX+49LcamXVUcuZ6GNOxFZR/hhclgYThGIB4w0ylqYiogFTeKlcK5Tyx8UYUHG0aHq vt7vVQD26bWKwUEpsE0UiXWp5mfPSpyRLfV0FhYGFMUxrYwdOZsqHc4rqSRDO5BHvUoI fweiaY2QFDwB1aN4jUxmgXOaP4kQ5IIEQGM+PDwFFWxzDrKmkyJjxVVfFL5bIBhtsD4y +T/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ErqvCG/Azmr72BGsCkp6WrEy+06cfDjMYZox0E/958s=; b=CAxpUhMpAIVriOjNam1Rs0/NeJt/qsTl+RWjPjOXAtuBLT5yJUVRWGfuDBGg+LlD+3 glWuPF5yCo3x2aCkHU3NHQU5o1L+fAyD+2PENKZ7wXCEhDiIy/rli3fUkQDR+5e5DTYe TvsOEwGvyCzyBxBMLumxKdMxTnJjT/tZ+4n99vRaWlwuLzCrG0swiqcgqR6Gd96rsHUp VoT2JxeAaI2fcotQyC1BXWLvNJA4ER/3/orto8BRc5RjRhOxQdVB5vGTaGk+dJjOTJBH 0gWO7AwSAxKGkYkSVDE4RntlmtWWrS0CcZ3j6k1+FgjjBaomsrAVLwUL6AJZKHs3hUIm k7Pg== X-Gm-Message-State: ABuFfoj0Wx1iEukEpCYcgafvzOpRIbZHXWbob+htdDT0bgWor1I6sKhY erY5v8uc2VE67IH+M5iLIV5ITjFDoy8ljA== X-Google-Smtp-Source: ACcGV62Tkt4yFQsnyHoHVZ1ZdvtkxZK/9EdHrOFJ3+7xCT1J/Lt5TrbER9TYLdcKojVHHxcZOyZSLA== X-Received: by 2002:adf:ec11:: with SMTP id x17-v6mr4159596wrn.266.1538646348826; Thu, 04 Oct 2018 02:45:48 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id m8-v6sm2294934wrn.72.2018.10.04.02.45.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 02:45:47 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id b05ab220 for ; Thu, 4 Oct 2018 09:45:46 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v1 1/2] notmuch: Silence compiler warnings. Date: Thu, 4 Oct 2018 10:45:44 +0100 Message-Id: <20181004094545.18710-1-dme@dme.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2018 09:45:56 -0000 --- debugger.c | 7 ++++--- gmime-filter-reply.c | 4 ++-- lib/index.cc | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/debugger.c b/debugger.c index 5cb38ac4..db258c33 100644 --- a/debugger.c +++ b/debugger.c @@ -31,13 +31,14 @@ bool debugger_is_active (void) { - char buf[1024]; + char proc[PATH_MAX]; + char buf[PATH_MAX]; if (RUNNING_ON_VALGRIND) return true; - sprintf (buf, "/proc/%d/exe", getppid ()); - if (readlink (buf, buf, sizeof (buf)) != -1 && + sprintf (proc, "/proc/%d/exe", getppid ()); + if (readlink (proc, buf, sizeof (buf)) != -1 && strncmp (basename (buf), "gdb", 3) == 0) { return true; diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c index f673c0a2..5a956395 100644 --- a/gmime-filter-reply.c +++ b/gmime-filter-reply.c @@ -29,7 +29,7 @@ **/ -static void g_mime_filter_reply_class_init (GMimeFilterReplyClass *klass); +static void g_mime_filter_reply_class_init (GMimeFilterReplyClass *klass, gpointer klass_data); static void g_mime_filter_reply_init (GMimeFilterReply *filter, GMimeFilterReplyClass *klass); static void g_mime_filter_reply_finalize (GObject *object); @@ -70,7 +70,7 @@ g_mime_filter_reply_get_type (void) static void -g_mime_filter_reply_class_init (GMimeFilterReplyClass *klass) +g_mime_filter_reply_class_init (GMimeFilterReplyClass *klass, gpointer klass_data __attribute__ ((unused))) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GMimeFilterClass *filter_class = GMIME_FILTER_CLASS (klass); diff --git a/lib/index.cc b/lib/index.cc index 3f694387..86c6171d 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -142,7 +142,8 @@ static void filter_reset (GMimeFilter *filter); static GMimeFilterClass *parent_class = NULL; static void -notmuch_filter_discard_non_term_class_init (NotmuchFilterDiscardNonTermClass *klass) +notmuch_filter_discard_non_term_class_init (NotmuchFilterDiscardNonTermClass *klass, + gpointer klass_data __attribute__ ((unused))) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GMimeFilterClass *filter_class = GMIME_FILTER_CLASS (klass); -- 2.19.0