Don't use the deprecated 'register' storage specifier.

It is not only useless with any modern C++ compiler, but also deprecated
in C++11.  Removing it fixes Clang warnings on the subject.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2014-05-19 17:23:02 +00:00
parent 1b3cba17e8
commit 7a25cf4932
10 changed files with 68 additions and 70 deletions

View File

@@ -761,8 +761,8 @@ Thanks,
#define SWAP(a, b, size) \
do \
{ \
register size_t __size = (size); \
register char *__a = (a), *__b = (b); \
size_t __size = (size); \
char *__a = (a), *__b = (b); \
do \
{ \
char __tmp = *__a; \
@@ -815,7 +815,7 @@ typedef struct
void wxQsort(void* pbase, size_t total_elems,
size_t size, wxSortCallback cmp, const void* user_data)
{
register char *base_ptr = (char *) pbase;
char *base_ptr = (char *) pbase;
const size_t max_thresh = MAX_THRESH * size;
if (total_elems == 0)
@@ -929,7 +929,7 @@ void wxQsort(void* pbase, size_t total_elems,
char *thresh = base_ptr + max_thresh;
if ( thresh > end_ptr )
thresh = end_ptr;
register char *run_ptr;
char *run_ptr;
/* Find smallest element in first threshold and place it at the
array's beginning. This is the smallest array element,