Cygwin: C++17: register keyword is deprecated
The register keyword was already deprecated with C++11, but with C++17 it has been entirely removed. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
6bb96d13a2
commit
8169e39abf
|
@ -359,7 +359,7 @@ msgctl(struct thread *td, struct msgctl_args *uap)
|
||||||
struct msqid_ds *user_msqptr = uap->buf;
|
struct msqid_ds *user_msqptr = uap->buf;
|
||||||
int rval, error;
|
int rval, error;
|
||||||
struct msqid_ds msqbuf;
|
struct msqid_ds msqbuf;
|
||||||
register struct msqid_ds *msqptr;
|
struct msqid_ds *msqptr;
|
||||||
|
|
||||||
DPRINTF(("call to msgctl(%d, %d, 0x%x)\n", msqid, cmd, user_msqptr));
|
DPRINTF(("call to msgctl(%d, %d, 0x%x)\n", msqid, cmd, user_msqptr));
|
||||||
|
|
||||||
|
@ -516,7 +516,7 @@ msgget(struct thread *td, struct msgget_args *uap)
|
||||||
int msqid, error = 0;
|
int msqid, error = 0;
|
||||||
key_t key = uap->key;
|
key_t key = uap->key;
|
||||||
unsigned msgflg = uap->msgflg;
|
unsigned msgflg = uap->msgflg;
|
||||||
register struct msqid_ds *msqptr = NULL;
|
struct msqid_ds *msqptr = NULL;
|
||||||
|
|
||||||
DPRINTF(("msgget(0x%x, 0%o)\n", key, msgflg));
|
DPRINTF(("msgget(0x%x, 0%o)\n", key, msgflg));
|
||||||
|
|
||||||
|
@ -629,8 +629,8 @@ msgsnd(struct thread *td, struct msgsnd_args *uap)
|
||||||
size_t msgsz = uap->msgsz;
|
size_t msgsz = uap->msgsz;
|
||||||
int msgflg = uap->msgflg;
|
int msgflg = uap->msgflg;
|
||||||
int segs_needed, error = 0;
|
int segs_needed, error = 0;
|
||||||
register struct msqid_ds *msqptr;
|
struct msqid_ds *msqptr;
|
||||||
register struct msg *msghdr;
|
struct msg *msghdr;
|
||||||
short next;
|
short next;
|
||||||
|
|
||||||
DPRINTF(("call to msgsnd(%d, 0x%x, %d, %d)\n", msqid, user_msgp, msgsz,
|
DPRINTF(("call to msgsnd(%d, 0x%x, %d, %d)\n", msqid, user_msgp, msgsz,
|
||||||
|
@ -943,8 +943,8 @@ msgrcv(struct thread *td, struct msgrcv_args *uap)
|
||||||
long msgtyp = uap->msgtyp;
|
long msgtyp = uap->msgtyp;
|
||||||
int msgflg = uap->msgflg;
|
int msgflg = uap->msgflg;
|
||||||
size_t len;
|
size_t len;
|
||||||
register struct msqid_ds *msqptr;
|
struct msqid_ds *msqptr;
|
||||||
register struct msg *msghdr;
|
struct msg *msghdr;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
short next;
|
short next;
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ cpuid (uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t ain,
|
||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
static inline bool __attribute ((always_inline))
|
static inline bool __attribute ((always_inline))
|
||||||
can_set_flag (register uint32_t long flag)
|
can_set_flag (uint32_t long flag)
|
||||||
{
|
{
|
||||||
register uint32_t long r1, r2;
|
uint32_t long r1, r2;
|
||||||
|
|
||||||
asm volatile ("pushfq\n"
|
asm volatile ("pushfq\n"
|
||||||
"popq %0\n"
|
"popq %0\n"
|
||||||
|
@ -41,9 +41,9 @@ can_set_flag (register uint32_t long flag)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline bool __attribute ((always_inline))
|
static inline bool __attribute ((always_inline))
|
||||||
can_set_flag (register uint32_t flag)
|
can_set_flag (uint32_t flag)
|
||||||
{
|
{
|
||||||
register uint32_t r1, r2;
|
uint32_t r1, r2;
|
||||||
|
|
||||||
asm volatile ("pushfl\n"
|
asm volatile ("pushfl\n"
|
||||||
"popl %0\n"
|
"popl %0\n"
|
||||||
|
|
|
@ -482,8 +482,8 @@ posify_maybe (char **here, const char *value, char *outenv)
|
||||||
static char *
|
static char *
|
||||||
my_findenv (const char *name, int *offset)
|
my_findenv (const char *name, int *offset)
|
||||||
{
|
{
|
||||||
register int len;
|
int len;
|
||||||
register char **p;
|
char **p;
|
||||||
const char *c;
|
const char *c;
|
||||||
|
|
||||||
if (cur_environ () == NULL)
|
if (cur_environ () == NULL)
|
||||||
|
@ -706,7 +706,7 @@ setenv (const char *name, const char *value, int overwrite)
|
||||||
extern "C" int
|
extern "C" int
|
||||||
unsetenv (const char *name)
|
unsetenv (const char *name)
|
||||||
{
|
{
|
||||||
register char **e;
|
char **e;
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
__try
|
__try
|
||||||
|
|
|
@ -997,7 +997,7 @@ find_ws (char *in)
|
||||||
inline char *
|
inline char *
|
||||||
conv_fstab_spaces (char *field)
|
conv_fstab_spaces (char *field)
|
||||||
{
|
{
|
||||||
register char *sp = field;
|
char *sp = field;
|
||||||
while ((sp = strstr (sp, "\\040")) != NULL)
|
while ((sp = strstr (sp, "\\040")) != NULL)
|
||||||
{
|
{
|
||||||
*sp++ = ' ';
|
*sp++ = ' ';
|
||||||
|
|
|
@ -890,7 +890,7 @@ RtlInt64ToHexUnicodeString (ULONGLONG value, PUNICODE_STRING dest,
|
||||||
if (dest->MaximumLength - len < 16 * (int) sizeof (WCHAR))
|
if (dest->MaximumLength - len < 16 * (int) sizeof (WCHAR))
|
||||||
return STATUS_BUFFER_OVERFLOW;
|
return STATUS_BUFFER_OVERFLOW;
|
||||||
wchar_t *end = (PWCHAR) ((PBYTE) dest->Buffer + len);
|
wchar_t *end = (PWCHAR) ((PBYTE) dest->Buffer + len);
|
||||||
register PWCHAR p = end + 16;
|
PWCHAR p = end + 16;
|
||||||
while (p-- > end)
|
while (p-- > end)
|
||||||
{
|
{
|
||||||
*p = hex_wchars[value & 0xf];
|
*p = hex_wchars[value & 0xf];
|
||||||
|
|
|
@ -32,7 +32,7 @@ extern const char isalpha_array[];
|
||||||
static inline int
|
static inline int
|
||||||
ascii_strcasematch (const char *cs, const char *ct)
|
ascii_strcasematch (const char *cs, const char *ct)
|
||||||
{
|
{
|
||||||
register const unsigned char *us, *ut;
|
const unsigned char *us, *ut;
|
||||||
|
|
||||||
us = (const unsigned char *) cs;
|
us = (const unsigned char *) cs;
|
||||||
ut = (const unsigned char *) ct;
|
ut = (const unsigned char *) ct;
|
||||||
|
@ -49,7 +49,7 @@ ascii_strcasematch (const char *cs, const char *ct)
|
||||||
static inline int
|
static inline int
|
||||||
ascii_strncasematch (const char *cs, const char *ct, size_t n)
|
ascii_strncasematch (const char *cs, const char *ct, size_t n)
|
||||||
{
|
{
|
||||||
register const unsigned char *us, *ut;
|
const unsigned char *us, *ut;
|
||||||
|
|
||||||
if (!n)
|
if (!n)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -35,9 +35,9 @@ extern "C" char *
|
||||||
strsep (char **stringp,
|
strsep (char **stringp,
|
||||||
const char *delim)
|
const char *delim)
|
||||||
{
|
{
|
||||||
register char *s;
|
char *s;
|
||||||
register const char *spanp;
|
const char *spanp;
|
||||||
register int c, sc;
|
int c, sc;
|
||||||
char *tok;
|
char *tok;
|
||||||
|
|
||||||
if ((s = *stringp) == NULL)
|
if ((s = *stringp) == NULL)
|
||||||
|
|
|
@ -283,7 +283,7 @@ find_ws (char *in)
|
||||||
inline char *
|
inline char *
|
||||||
conv_fstab_spaces (char *field)
|
conv_fstab_spaces (char *field)
|
||||||
{
|
{
|
||||||
register char *sp = field;
|
char *sp = field;
|
||||||
while ((sp = strstr (sp, "\\040")) != NULL)
|
while ((sp = strstr (sp, "\\040")) != NULL)
|
||||||
{
|
{
|
||||||
*sp++ = ' ';
|
*sp++ = ' ';
|
||||||
|
|
Loading…
Reference in New Issue