[glib: 1/2] dtrace: Add missing const attributes to types in glib_probes.d
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] dtrace: Add missing const attributes to types in glib_probes.d
- Date: Wed, 5 Sep 2018 10:13:28 +0000 (UTC)
commit 41cc3850ffb5ec9d693fd4069250210f06cef1f1
Author: Philip Withnall <withnall endlessm com>
Date: Sat Aug 25 23:59:45 2018 +0100
dtrace: Add missing const attributes to types in glib_probes.d
This eliminates some ‘discards const qualifier’ warnings when compiling
on Solaris with --enable-dtrace.
See the log files in
https://gitlab.gnome.org/GNOME/glib/issues/1493#note_299037.
Signed-off-by: Philip Withnall <withnall endlessm com>
glib/glib_probes.d | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glib/glib_probes.d b/glib/glib_probes.d
index d6b1f8d15..14bb8f1ec 100644
--- a/glib/glib_probes.d
+++ b/glib/glib_probes.d
@@ -4,16 +4,16 @@ provider glib {
probe mem__free(void*);
probe slice__alloc(void*, unsigned int);
probe slice__free(void*, unsigned int);
- probe quark__new(char *, unsigned int);
+ probe quark__new(const char *, unsigned int);
probe main__after_prepare(void*, void*, unsigned int);
probe main__after_check(void*, void*, unsigned int);
- probe main__before_dispatch(char*, void*, void*, void*, void*);
- probe main__after_dispatch(char*, void*, void*, unsigned int);
- probe main__source_attach(char*, void*, void*, unsigned int);
- probe main__source_destroy(char*, void*, void*);
+ probe main__before_dispatch(const char*, void*, void*, void*, void*);
+ probe main__after_dispatch(const char*, void*, void*, unsigned int);
+ probe main__source_attach(const char*, void*, void*, unsigned int);
+ probe main__source_destroy(const char*, void*, void*);
probe main__context_default(void*);
probe main__context_new(void*);
- probe main__context_acquire(void*, void*);
+ probe main__context_acquire(void*, int);
probe main__context_release(void*);
probe main__context_free(void*);
probe main__context_push_thread_default(void*);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]