mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-18 11:27:37 +00:00
Pacify Oracle Studio 12.6 in init_switches
* src/main.c (init_switches): Use a cast to convert char const * to char *. Without this patch, the compiler complains ‘"src/main.c", line 2643: warning: assignment type mismatch: pointer to char "=" pointer to const char’.
This commit is contained in:
parent
73e11a5024
commit
8d820d57f6
1 changed files with 2 additions and 2 deletions
|
@ -2639,8 +2639,8 @@ init_switches (void)
|
|||
|
||||
for (i = 0; switches[i].c != '\0'; ++i)
|
||||
{
|
||||
long_options[i].name = (switches[i].long_name == 0 ? "" :
|
||||
switches[i].long_name);
|
||||
long_options[i].name = (char *) (switches[i].long_name == 0 ? "" :
|
||||
switches[i].long_name);
|
||||
long_options[i].flag = 0;
|
||||
long_options[i].val = switches[i].c;
|
||||
if (short_option (switches[i].c))
|
||||
|
|
Loading…
Reference in a new issue