evas_gl_texture: add missing type declaration 01/224701/2
authorYeongjong Lee <yj34.lee@samsung.com>
Wed, 12 Feb 2020 09:52:34 +0000 (18:52 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Thu, 13 Feb 2020 05:02:51 +0000 (05:02 +0000)
Fixes compiler warings.
```
[   69s] ../src/modules/evas/engines/gl_common/evas_gl_texture.c:56:14: warning: type defaults to 'int' in declaration of 'palette_ifmt' [-Wimplicit-int]
[   69s]    56 | static const palette_ifmt         = GL_ALPHA;
[   69s]       |              ^~~~~~~~~~~~
[   69s] ../src/modules/evas/engines/gl_common/evas_gl_texture.c:57:14: warning: type defaults to 'int' in declaration of 'palette_fmt' [-Wimplicit-int]
[   69s]    57 | static const palette_fmt          = GL_ALPHA;
[   69s]       |              ^~~~~~~~~~~
[   69s] ../src/modules/evas/engines/gl_common/evas_gl_texture.c:105:52: warning: pointer targets in initialization of 'const GLenum *' {aka 'const unsigned int *'} from 'const int *' differ in signedness [-Wpointer-sign]
[   69s]   105 |   { MATCH_ANY, MATCH_ANY, EVAS_COLORSPACE_PALETTE, &palette_ifmt, &palette_fmt }
[   69s]       |                                                    ^
[   69s] ../src/modules/evas/engines/gl_common/evas_gl_texture.c:105:52: note: (near initialization for 'matching_format[17].intformat')
[   69s] ../src/modules/evas/engines/gl_common/evas_gl_texture.c:105:67: warning: pointer targets in initialization of 'const GLenum *' {aka 'const unsigned int *'} from 'const int *' differ in signedness [-Wpointer-sign]
[   69s]   105 |   { MATCH_ANY, MATCH_ANY, EVAS_COLORSPACE_PALETTE, &palette_ifmt, &palette_fmt }
```

@tizen_fix
Change-Id: I45b802841079f1233b9a3a24aa8fe06d931bd257

src/modules/evas/engines/gl_common/evas_gl_texture.c

index 22ee824..e4e6d4b 100755 (executable)
@@ -53,8 +53,8 @@ static const GLenum s3tc_rgba_dxt23_fmt = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT;
 static const GLenum s3tc_rgba_dxt45_fmt = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
 
 // TIZEN ONLY (20180823): Use PIO for Paletted png
-static const palette_ifmt         = GL_ALPHA;
-static const palette_fmt          = GL_ALPHA;
+static const GLenum palette_ifmt         = GL_ALPHA;
+static const GLenum palette_fmt          = GL_ALPHA;
 // TIZEN ONLY - END
 
 static struct {