From: Rafał Długołęcki Date: Thu, 28 Jan 2016 17:38:56 +0000 (+0100) Subject: Fix warnings related to const char* -> char* conversion X-Git-Tag: 3.4-b1~35 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=202ad71d2beff55ffdb8e62bc3a62a0abb4c4618;p=vlp.git Fix warnings related to const char* -> char* conversion --- 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();