mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +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;
|
int opt = 0, d3dpal = 0, k = 0;
|
||||||
int16_t i = 1;
|
int16_t i = 1;
|
||||||
char *filename = NULL; // This is only a pointer. Do not strcpy to it.
|
char const * filename = NULL; // This is only a pointer. Do not strcpy to it.
|
||||||
char *c = NULL;
|
char const * c = NULL;
|
||||||
|
|
||||||
Bprintf("%s\n%s\n\n", APP_NAME, APP_CPRT);
|
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)
|
while (i < argc)
|
||||||
{
|
{
|
||||||
c = (char *)argv[i];
|
c = (char const *)argv[i];
|
||||||
if ((*c == '-')
|
if ((*c == '-')
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|| (*c == '/')
|
|| (*c == '/')
|
||||||
|
@ -88,7 +88,7 @@ int main(const int32_t argc, const char **argv)
|
||||||
if (!Bstrcasecmp(c,"f"))
|
if (!Bstrcasecmp(c,"f"))
|
||||||
{
|
{
|
||||||
if (argc > i+1)
|
if (argc > i+1)
|
||||||
filename = (char *)argv[++i];
|
filename = (char const *)argv[++i];
|
||||||
++i;
|
++i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -131,12 +131,12 @@ int main(const int32_t argc, const char **argv)
|
||||||
{
|
{
|
||||||
case 1: // Duke-specific palettes
|
case 1: // Duke-specific palettes
|
||||||
case 2:
|
case 2:
|
||||||
filename = (char*)pal_deffn[d3dpal];
|
filename = (char const *)pal_deffn[d3dpal];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3: // game palette
|
case 3: // game palette
|
||||||
case 4:
|
case 4:
|
||||||
filename = (char*)pal_deffn[0];
|
filename = (char const *)pal_deffn[0];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue