[FATTEN][KBDTOOL][RSYM]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 5 Feb 2017 10:46:29 +0000 (10:46 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 5 Feb 2017 10:46:29 +0000 (10:46 +0000)
- Fix clang warnings

svn path=/trunk/; revision=73701

reactos/sdk/tools/fatten/fatten.c
reactos/sdk/tools/kbdtool/parser.c
reactos/sdk/tools/rsym/rsym.c

index ae50aea..50feacd 100644 (file)
@@ -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)
index f3988b0..a1ca567 100644 (file)
@@ -189,8 +189,8 @@ getCharacterInfo(IN PCHAR State,
     {
         /* 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 @@ DoLAYOUT(IN PLAYOUT LayoutData,
     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));
index 238a06b..58f5960 100644 (file)
@@ -935,7 +935,8 @@ CreateOutputFile(FILE *OutFile, void *InData,
                                                  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