From 202ad71d2beff55ffdb8e62bc3a62a0abb4c4618 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Thu, 28 Jan 2016 18:38:56 +0100 Subject: [PATCH] Fix warnings related to const char* -> char* conversion --- Makefile.am | 2 +- src/edit/editor.cpp | 2 +- src/kernel/kernel.cpp | 2 +- src/kernel/kernel.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0ffe5b5..49b884a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,7 @@ MOC = ${MOCDIR}/${MOCNAME} #AM_CXXFLAGS= -Wall -pedantic -Wextra -fno-strength-reduce #AM_CXXFLAGS = -m32 -AM_CXXFLAGS = -I$(top_srcdir)/src/global -I${QTDIR}/include/qt4 -pedantic -Wall -Wextra -DQT3_SUPPORT +AM_CXXFLAGS = -I$(top_srcdir)/src/global -I${QTDIR}/include/qt4 -pedantic -Wall -Wextra -DQT3_SUPPORT AM_LDFLAGS= -fPIC -L$(QTDIR)/lib -lQtCore -lQtGui -lQt3Support EXTRA_DIST = \ diff --git a/src/edit/editor.cpp b/src/edit/editor.cpp index c40795b..c832f3e 100644 --- a/src/edit/editor.cpp +++ b/src/edit/editor.cpp @@ -21,7 +21,7 @@ /** * @attention Currently not in use */ -char *UnitTypes[TYPENUM] = { +const char *UnitTypes[TYPENUM] = { "CLASS", "PROCEDURE", "FUNCTION", diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index c420a7f..4db3eee 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -734,7 +734,7 @@ void QKernel::IntMessage(int sock) * Writes message to kernel logger. * @parame msg String with message to log */ -void QKernel::WriteMessage(char *msg) +void QKernel::WriteMessage(const char *msg) { int x; int y; diff --git a/src/kernel/kernel.h b/src/kernel/kernel.h index 0de37a7..a07b55b 100644 --- a/src/kernel/kernel.h +++ b/src/kernel/kernel.h @@ -107,7 +107,7 @@ public: QKernel(int argc, char **argv); - void WriteMessage(char* msg); + void WriteMessage(const char * msg); public slots: void NetMessage(); -- 2.30.2