mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
testdisplay: fixup smaller compiler warnings
const char * issues and redudant getopt stuff Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
08cd2f220e
commit
db7462e1f5
@ -102,11 +102,11 @@ uint32_t *fb_ptr;
|
|||||||
|
|
||||||
struct type_name {
|
struct type_name {
|
||||||
int type;
|
int type;
|
||||||
char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define type_name_fn(res) \
|
#define type_name_fn(res) \
|
||||||
static char * res##_str(int type) { \
|
static const char * res##_str(int type) { \
|
||||||
unsigned int i; \
|
unsigned int i; \
|
||||||
for (i = 0; i < ARRAY_SIZE(res##_names); i++) { \
|
for (i = 0; i < ARRAY_SIZE(res##_names); i++) { \
|
||||||
if (res##_names[i].type == type) \
|
if (res##_names[i].type == type) \
|
||||||
@ -1037,8 +1037,6 @@ static int update_display(void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *optarg;
|
|
||||||
extern int optind, opterr, optopt;
|
|
||||||
static char optstr[] = "hiaf:s:d:p:mt";
|
static char optstr[] = "hiaf:s:d:p:mt";
|
||||||
|
|
||||||
static void usage(char *name)
|
static void usage(char *name)
|
||||||
@ -1119,7 +1117,7 @@ static gboolean input_event(GIOChannel *source, GIOCondition condition,
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
char *modules[] = { "i915" };
|
const char *modules[] = { "i915" };
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
struct udev *u;
|
struct udev *u;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user