mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Build tools: Fix warning: cast from type 'const char*' to type 'char*' casts away qualifiers [-Wcast-qual]
git-svn-id: https://svn.eduke32.com/eduke32@6037 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5038fb3bc1
commit
05b311b72a
1 changed files with 6 additions and 6 deletions
|
@ -64,8 +64,8 @@ int main(const int32_t argc, const char **argv)
|
|||
{
|
||||
int opt = 0, d3dpal = 0, k = 0;
|
||||
int16_t i = 1;
|
||||
char *filename = NULL; // This is only a pointer. Do not strcpy to it.
|
||||
char *c = NULL;
|
||||
char const * filename = NULL; // This is only a pointer. Do not strcpy to it.
|
||||
char const * c = NULL;
|
||||
|
||||
Bprintf("%s\n%s\n\n", APP_NAME, APP_CPRT);
|
||||
|
||||
|
@ -77,7 +77,7 @@ int main(const int32_t argc, const char **argv)
|
|||
|
||||
while (i < argc)
|
||||
{
|
||||
c = (char *)argv[i];
|
||||
c = (char const *)argv[i];
|
||||
if ((*c == '-')
|
||||
#ifdef _WIN32
|
||||
|| (*c == '/')
|
||||
|
@ -88,7 +88,7 @@ int main(const int32_t argc, const char **argv)
|
|||
if (!Bstrcasecmp(c,"f"))
|
||||
{
|
||||
if (argc > i+1)
|
||||
filename = (char *)argv[++i];
|
||||
filename = (char const *)argv[++i];
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
|
@ -131,12 +131,12 @@ int main(const int32_t argc, const char **argv)
|
|||
{
|
||||
case 1: // Duke-specific palettes
|
||||
case 2:
|
||||
filename = (char*)pal_deffn[d3dpal];
|
||||
filename = (char const *)pal_deffn[d3dpal];
|
||||
break;
|
||||
|
||||
case 3: // game palette
|
||||
case 4:
|
||||
filename = (char*)pal_deffn[0];
|
||||
filename = (char const *)pal_deffn[0];
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue