diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-11-23 07:09:19 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-11-23 22:13:54 +0100 |
commit | 28d75608fe4920a4b0b57262b211d9990d636ea0 (patch) | |
tree | c226b912c9bb9b107faecfc923c33fada28b4187 | |
parent | 1266e02a63f83c3a644e77fd07edb020602e6f50 (diff) | |
download | qtserialport-28d75608fe4920a4b0b57262b211d9990d636ea0.tar.gz |
Remove the 'register' keyword
It doesn't do anything and has been deprecated in C++14. Clang even
prints a warning.
Change-Id: Ie803a206f02897f99358ed22bf9cb999ca457741
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r-- | src/serialport/qt4support/include/private/qcore_unix_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qt4support/include/private/qcore_unix_p.h b/src/serialport/qt4support/include/private/qcore_unix_p.h index 6a7fb72..640525a 100644 --- a/src/serialport/qt4support/include/private/qcore_unix_p.h +++ b/src/serialport/qt4support/include/private/qcore_unix_p.h @@ -72,7 +72,7 @@ static inline int qt_safe_open(const char *pathname, int flags, mode_t mode = 07 #ifdef O_CLOEXEC flags |= O_CLOEXEC; #endif - register int fd; + int fd; EINTR_LOOP(fd, QT_OPEN(pathname, flags, mode)); // unknown flags are ignored, so we have no way of verifying if @@ -104,7 +104,7 @@ static inline qint64 qt_safe_write(int fd, const void *data, qint64 len) static inline int qt_safe_close(int fd) { - register int ret; + int ret; EINTR_LOOP(ret, QT_CLOSE(fd)); return ret; } |