mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 04:50:31 +01:00
[cairo-boilerplate] Silence compiler warning.
Mark the optstr argument as const to silence a compiler warning in cairo-perf.
This commit is contained in:
parent
ac44817c4a
commit
c2963fa6c1
2 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ static int permute_argv_once()
|
|||
}
|
||||
|
||||
|
||||
int _cairo_getopt(int argc, char** argv, char* optstr)
|
||||
int _cairo_getopt(int argc, char** argv, const char* optstr)
|
||||
{
|
||||
int c = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ extern int optind;
|
|||
extern int opterr;
|
||||
extern int optopt;
|
||||
|
||||
int _cairo_getopt(int argc, char** argv, char* optstr);
|
||||
int _cairo_getopt(int argc, char** argv, const char* optstr);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue