fix some minor warnings
This commit is contained in:
parent
b43a828ad4
commit
a3e44f4531
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: glthreads.c,v 1.1 2000/07/20 20:12:17 brianp Exp $ */
|
/* $Id: glthreads.c,v 1.2 2002/03/08 19:44:28 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2000 Brian Paul All Rights Reserved.
|
* Copyright (C) 2000 Brian Paul All Rights Reserved.
|
||||||
|
@ -38,6 +38,7 @@
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: glxheads.c,v 1.2 2000/11/10 17:23:07 brianp Exp $ */
|
/* $Id: glxheads.c,v 1.3 2002/03/08 19:44:28 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exercise multiple GLX connections on multiple X displays.
|
* Exercise multiple GLX connections on multiple X displays.
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,9 +248,9 @@ static void
|
||||||
PrintInfo(const struct head *h)
|
PrintInfo(const struct head *h)
|
||||||
{
|
{
|
||||||
printf("Name: %s\n", h->DisplayName);
|
printf("Name: %s\n", h->DisplayName);
|
||||||
printf(" Display: 0x%x\n", h->Dpy);
|
printf(" Display: 0x%x\n", (int) h->Dpy);
|
||||||
printf(" Window: 0x%x\n", h->Win);
|
printf(" Window: 0x%x\n", (int) h->Win);
|
||||||
printf(" Context: 0x%x\n", h->Context);
|
printf(" Context: 0x%x\n", (int) h->Context);
|
||||||
printf(" GL_VERSION: %s\n", h->Version);
|
printf(" GL_VERSION: %s\n", h->Version);
|
||||||
printf(" GL_VENDOR: %s\n", h->Vendor);
|
printf(" GL_VENDOR: %s\n", h->Vendor);
|
||||||
printf(" GL_RENDERER: %s\n", h->Renderer);
|
printf(" GL_RENDERER: %s\n", h->Renderer);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: glxinfo.c,v 1.14 2001/04/24 20:57:36 brianp Exp $ */
|
/* $Id: glxinfo.c,v 1.15 2002/03/08 19:44:28 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
|
||||||
|
@ -408,7 +408,7 @@ print_visual_attribs_short_header(void)
|
||||||
static void
|
static void
|
||||||
print_visual_attribs_short(const struct visual_attribs *attribs)
|
print_visual_attribs_short(const struct visual_attribs *attribs)
|
||||||
{
|
{
|
||||||
char *caveat;
|
char *caveat = NULL;
|
||||||
#ifdef GLX_EXT_visual_rating
|
#ifdef GLX_EXT_visual_rating
|
||||||
if (attribs->visualCaveat == GLX_NONE_EXT || attribs->visualCaveat == 0)
|
if (attribs->visualCaveat == GLX_NONE_EXT || attribs->visualCaveat == 0)
|
||||||
caveat = "None";
|
caveat = "None";
|
||||||
|
|
Loading…
Reference in New Issue