diff --git a/src/corelib/kernel/qeventdispatcher_glib.cpp b/src/corelib/kernel/qeventdispatcher_glib.cpp index 3964c1ceac..974ce7f5e1 100644 --- a/src/corelib/kernel/qeventdispatcher_glib.cpp +++ b/src/corelib/kernel/qeventdispatcher_glib.cpp @@ -82,7 +82,7 @@ static gboolean socketNotifierSourceCheck(GSource *source) if (p->pollfd.revents & G_IO_NVAL) { // disable the invalid socket notifier - static const char *t[] = { "Read", "Write", "Exception" }; + const char * const t[] = { "Read", "Write", "Exception" }; qWarning("QSocketNotifier: Invalid socket %d and type '%s', disabling...", p->pollfd.fd, t[int(p->socketNotifier->type())]); // ### note, modifies src->pollfds!