unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v1 1/2] notmuch: Silence compiler warnings.
@ 2018-10-04  9:45 David Edmondson
  2018-10-04  9:45 ` [PATCH v1 2/2] emacs: Update integration with third party packages David Edmondson
  0 siblings, 1 reply; 5+ messages in thread
From: David Edmondson @ 2018-10-04  9:45 UTC (permalink / raw)
  To: notmuch

---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-08 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-04  9:45 [PATCH v1 1/2] notmuch: Silence compiler warnings David Edmondson
2018-10-04  9:45 ` [PATCH v1 2/2] emacs: Update integration with third party packages David Edmondson
2018-10-04 21:16   ` Tomi Ollila
2018-10-04 21:38     ` David Edmondson
2018-10-08 15:52   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).