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;
|
||||
int rval, error;
|
||||
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));
|
||||
|
||||
|
@ -516,7 +516,7 @@ msgget(struct thread *td, struct msgget_args *uap)
|
|||
int msqid, error = 0;
|
||||
key_t key = uap->key;
|
||||
unsigned msgflg = uap->msgflg;
|
||||
register struct msqid_ds *msqptr = NULL;
|
||||
struct msqid_ds *msqptr = NULL;
|
||||
|
||||
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;
|
||||
int msgflg = uap->msgflg;
|
||||
int segs_needed, error = 0;
|
||||
register struct msqid_ds *msqptr;
|
||||
register struct msg *msghdr;
|
||||
struct msqid_ds *msqptr;
|
||||
struct msg *msghdr;
|
||||
short next;
|
||||
|
||||
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;
|
||||
int msgflg = uap->msgflg;
|
||||
size_t len;
|
||||
register struct msqid_ds *msqptr;
|
||||
register struct msg *msghdr;
|
||||
struct msqid_ds *msqptr;
|
||||
struct msg *msghdr;
|
||||
int error = 0;
|
||||
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__
|
||||
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"
|
||||
"popq %0\n"
|
||||
|
@ -41,9 +41,9 @@ can_set_flag (register uint32_t long flag)
|
|||
}
|
||||
#else
|
||||
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"
|
||||
"popl %0\n"
|
||||
|
|
|
@ -482,8 +482,8 @@ posify_maybe (char **here, const char *value, char *outenv)
|
|||
static char *
|
||||
my_findenv (const char *name, int *offset)
|
||||
{
|
||||
register int len;
|
||||
register char **p;
|
||||
int len;
|
||||
char **p;
|
||||
const char *c;
|
||||
|
||||
if (cur_environ () == NULL)
|
||||
|
@ -706,7 +706,7 @@ setenv (const char *name, const char *value, int overwrite)
|
|||
extern "C" int
|
||||
unsetenv (const char *name)
|
||||
{
|
||||
register char **e;
|
||||
char **e;
|
||||
int offset;
|
||||
|
||||
__try
|
||||
|
|
|
@ -997,7 +997,7 @@ find_ws (char *in)
|
|||
inline char *
|
||||
conv_fstab_spaces (char *field)
|
||||
{
|
||||
register char *sp = field;
|
||||
char *sp = field;
|
||||
while ((sp = strstr (sp, "\\040")) != NULL)
|
||||
{
|
||||
*sp++ = ' ';
|
||||
|
|
|
@ -890,7 +890,7 @@ RtlInt64ToHexUnicodeString (ULONGLONG value, PUNICODE_STRING dest,
|
|||
if (dest->MaximumLength - len < 16 * (int) sizeof (WCHAR))
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
wchar_t *end = (PWCHAR) ((PBYTE) dest->Buffer + len);
|
||||
register PWCHAR p = end + 16;
|
||||
PWCHAR p = end + 16;
|
||||
while (p-- > end)
|
||||
{
|
||||
*p = hex_wchars[value & 0xf];
|
||||
|
|
|
@ -32,7 +32,7 @@ extern const char isalpha_array[];
|
|||
static inline int
|
||||
ascii_strcasematch (const char *cs, const char *ct)
|
||||
{
|
||||
register const unsigned char *us, *ut;
|
||||
const unsigned char *us, *ut;
|
||||
|
||||
us = (const unsigned char *) cs;
|
||||
ut = (const unsigned char *) ct;
|
||||
|
@ -49,7 +49,7 @@ ascii_strcasematch (const char *cs, const char *ct)
|
|||
static inline int
|
||||
ascii_strncasematch (const char *cs, const char *ct, size_t n)
|
||||
{
|
||||
register const unsigned char *us, *ut;
|
||||
const unsigned char *us, *ut;
|
||||
|
||||
if (!n)
|
||||
return 1;
|
||||
|
|
|
@ -35,9 +35,9 @@ extern "C" char *
|
|||
strsep (char **stringp,
|
||||
const char *delim)
|
||||
{
|
||||
register char *s;
|
||||
register const char *spanp;
|
||||
register int c, sc;
|
||||
char *s;
|
||||
const char *spanp;
|
||||
int c, sc;
|
||||
char *tok;
|
||||
|
||||
if ((s = *stringp) == NULL)
|
||||
|
|
|
@ -283,7 +283,7 @@ find_ws (char *in)
|
|||
inline char *
|
||||
conv_fstab_spaces (char *field)
|
||||
{
|
||||
register char *sp = field;
|
||||
char *sp = field;
|
||||
while ((sp = strstr (sp, "\\040")) != NULL)
|
||||
{
|
||||
*sp++ = ' ';
|
||||
|
|
Loading…
Reference in New Issue