mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[NTOS:KDBG] Silence clang -Wstring-plus-int warnings.
..\ntoskrnl\kdbg\i386\i386-dis.c(3131,23): warning: adding 'char' to a string does not append to the string [-Wstring-plus-int] oappend ("%cs:" + intel_syntax); ~~~~~~~^~~~~~~~~~~~~~ ..\ntoskrnl\kdbg\i386\i386-dis.c(3131,23): note: use array indexing to silence this warning oappend ("%cs:" + intel_syntax); ^ & [ ]
This commit is contained in:
parent
fcbfa843da
commit
c72066f87f
|
@ -3128,32 +3128,32 @@ append_seg (void)
|
||||||
if (prefixes & PREFIX_CS)
|
if (prefixes & PREFIX_CS)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_CS;
|
used_prefixes |= PREFIX_CS;
|
||||||
oappend ("%cs:" + intel_syntax);
|
oappend (&"%cs:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
if (prefixes & PREFIX_DS)
|
if (prefixes & PREFIX_DS)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_DS;
|
used_prefixes |= PREFIX_DS;
|
||||||
oappend ("%ds:" + intel_syntax);
|
oappend (&"%ds:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
if (prefixes & PREFIX_SS)
|
if (prefixes & PREFIX_SS)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_SS;
|
used_prefixes |= PREFIX_SS;
|
||||||
oappend ("%ss:" + intel_syntax);
|
oappend (&"%ss:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
if (prefixes & PREFIX_ES)
|
if (prefixes & PREFIX_ES)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_ES;
|
used_prefixes |= PREFIX_ES;
|
||||||
oappend ("%es:" + intel_syntax);
|
oappend (&"%es:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
if (prefixes & PREFIX_FS)
|
if (prefixes & PREFIX_FS)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_FS;
|
used_prefixes |= PREFIX_FS;
|
||||||
oappend ("%fs:" + intel_syntax);
|
oappend (&"%fs:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
if (prefixes & PREFIX_GS)
|
if (prefixes & PREFIX_GS)
|
||||||
{
|
{
|
||||||
used_prefixes |= PREFIX_GS;
|
used_prefixes |= PREFIX_GS;
|
||||||
oappend ("%gs:" + intel_syntax);
|
oappend (&"%gs:"[intel_syntax]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4029,7 +4029,7 @@ ptr_reg (int code, int sizeflag)
|
||||||
static void
|
static void
|
||||||
OP_ESreg (int code, int sizeflag)
|
OP_ESreg (int code, int sizeflag)
|
||||||
{
|
{
|
||||||
oappend ("%es:" + intel_syntax);
|
oappend (&"%es:"[intel_syntax]);
|
||||||
ptr_reg (code, sizeflag);
|
ptr_reg (code, sizeflag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue