mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
intel/compiler tests: fix variable type for getopt_long() return value
`getopt_long()` returns an `int`, not a `char`; putting the value in
a `char` before comparing it to `-1` was making the comparison always
fail, resulting in the invalid codepath taken that then fails with:
option `-' is invalid: ignored
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34756>
(cherry picked from commit 99e8d804bf)
This commit is contained in:
parent
08edf564a7
commit
d994ff9c89
3 changed files with 3 additions and 3 deletions
|
|
@ -5904,7 +5904,7 @@
|
|||
"description": "intel/compiler tests: fix variable type for getopt_long() return value",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ int main(int argc, char **argv)
|
|||
void *mem_ctx = ralloc_context(NULL);
|
||||
FILE *input_file = NULL;
|
||||
char *output_file = NULL;
|
||||
char c;
|
||||
int c;
|
||||
FILE *output = stdout;
|
||||
bool help = false, compact = false;
|
||||
uint64_t pci_id = 0;
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ i965_postprocess_labels()
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
char *output_file = NULL;
|
||||
char c;
|
||||
int c;
|
||||
FILE *output = stdout;
|
||||
bool help = false, compact = false;
|
||||
void *store;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue