Author: tfaber
Date: Sun Feb 5 10:46:29 2017
New Revision: 73701
URL:
http://svn.reactos.org/svn/reactos?rev=73701&view=rev
Log:
[FATTEN][KBDTOOL][RSYM]
- Fix clang warnings
Modified:
trunk/reactos/sdk/tools/fatten/fatten.c
trunk/reactos/sdk/tools/kbdtool/parser.c
trunk/reactos/sdk/tools/rsym/rsym.c
Modified: trunk/reactos/sdk/tools/fatten/fatten.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/fatten/fatten.c?…
==============================================================================
--- trunk/reactos/sdk/tools/fatten/fatten.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/fatten/fatten.c [iso-8859-1] Sun Feb 5 10:46:29 2017
@@ -14,7 +14,7 @@
static FATFS g_Filesystem;
static int isMounted = 0;
-static char buff[32768];
+static unsigned char buff[32768];
// tool needed by fatfs
DWORD get_fattime(void)
Modified: trunk/reactos/sdk/tools/kbdtool/parser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/kbdtool/parser.c…
==============================================================================
--- trunk/reactos/sdk/tools/kbdtool/parser.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/kbdtool/parser.c [iso-8859-1] Sun Feb 5 10:46:29 2017
@@ -189,8 +189,8 @@
{
/* Scan for extended character code entry */
if ((sscanf(State, "%6x", &CharCode) == 1) &&
- ((Length == 5) && (State[0] == '0') ||
- (Length == 6) && ((State[0] == '0') && (State[1] ==
'0'))))
+ (((Length == 5) && (State[0] == '0')) ||
+ ((Length == 6) && ((State[0] == '0') && (State[1] ==
'0')))))
{
/* Handle a ligature key */
CharInfo = CHAR_LIGATURE_KEY;
@@ -726,7 +726,8 @@
CHAR State[8][8];
ULONG ScanCodeCount = -1;
PLAYOUTENTRY Entry;
- UCHAR CharacterType, LigatureChar;
+ UCHAR CharacterType;
+ CHAR LigatureChar;
/* Zero out the layout */
memset(LayoutData, 0, sizeof(LAYOUT));
Modified: trunk/reactos/sdk/tools/rsym/rsym.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/rsym/rsym.c?rev=…
==============================================================================
--- trunk/reactos/sdk/tools/rsym/rsym.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/rsym/rsym.c [iso-8859-1] Sun Feb 5 10:46:29 2017
@@ -935,7 +935,8 @@
InSectionHeaders[Section].Name);
if (InSectionHeaders[Section].Name[0] == '/')
{
- StringTableLength = atoi(InSectionHeaders[Section].Name+1) +
strlen(SectionName) + 1;
+ StringTableLength = atoi((const char *)InSectionHeaders[Section].Name + 1) +
+ strlen((const char *)SectionName) + 1;
}
if ((StartOfRawData == 0 || InSectionHeaders[Section].PointerToRawData <
StartOfRawData)
&& InSectionHeaders[Section].PointerToRawData != 0