summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-11-27 10:34:55 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-11-27 10:34:55 (GMT)
commitb6101af96fb793d9e9bdc0c34f0690545f3a1e56 (patch)
tree75537b0958a7d24c92b2b06ac64f3e20914faa6c /src
parent8c7b1352474e4da5024cfc3ecc25a486b1d4ef2a (diff)
downloadDoxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.zip
Doxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.tar.gz
Doxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.tar.bz2
Keyword register (in code) is deprecated since C++11
The keyword `register` is deprecated since C++11: - for the Darwin platform it was already filtered (-Wno-deprecated-register) - CLan emits: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
Diffstat (limited to 'src')
-rw-r--r--src/configimpl.l2
-rw-r--r--src/portable.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index ed5b052..b533910 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -1263,7 +1263,7 @@ static void cleanUpPaths(QStrList &str)
char *sfp = str.first();
while (sfp)
{
- register char *p = sfp;
+ char *p = sfp;
if (p)
{
char c;
diff --git a/src/portable.cpp b/src/portable.cpp
index 08691b2..3dccaed 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -211,8 +211,8 @@ void portable_setenv(const char *name,const char *value)
#if defined(_WIN32) && !defined(__CYGWIN__)
SetEnvironmentVariable(name,value);
#else
- register char **ep = 0;
- register size_t size;
+ char **ep = 0;
+ size_t size;
const size_t namelen=qstrlen(name);
const size_t vallen=qstrlen(value) + 1;