summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/s3tc-dxt-decompression/compiler_warnings.diff
blob: 7d846836fdd94c95dddb763c6dab18bc153035c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/s3tc.cpp b/s3tc.cpp
index f2642fc..66b0029 100644
--- a/s3tc.cpp
+++ b/s3tc.cpp
@@ -105,8 +105,8 @@ void BlockDecompressImageDXT1(uint32_t width, uint32_t height, const uint8_t *bl
 {
     uint32_t blockCountX = (width + 3) / 4;
     uint32_t blockCountY = (height + 3) / 4;
-    uint32_t blockWidth = (width < 4) ? width : 4;
-    uint32_t blockHeight = (height < 4) ? height : 4;
+    //uint32_t blockWidth = (width < 4) ? width : 4;
+    //uint32_t blockHeight = (height < 4) ? height : 4;
 
     for (uint32_t j = 0; j < blockCountY; j++)
     {
@@ -236,8 +236,8 @@ void BlockDecompressImageDXT5(uint32_t width, uint32_t height, const uint8_t *bl
 {
     uint32_t blockCountX = (width + 3) / 4;
     uint32_t blockCountY = (height + 3) / 4;
-    uint32_t blockWidth = (width < 4) ? width : 4;
-    uint32_t blockHeight = (height < 4) ? height : 4;
+    //uint32_t blockWidth = (width < 4) ? width : 4;
+    //uint32_t blockHeight = (height < 4) ? height : 4;
 
     for (uint32_t j = 0; j < blockCountY; j++)
     {