Skip to content
Snippets Groups Projects
Commit 470f6733 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Fixed a couple of gcc warnings
parent a12a6200
No related branches found
No related tags found
No related merge requests found
// $Id: Views.cpp,v 1.93 2003-03-21 00:52:35 geuzaine Exp $ // $Id: Views.cpp,v 1.94 2003-04-14 22:55:56 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -1363,7 +1363,7 @@ static void merge(List_T * a, List_T * b) ...@@ -1363,7 +1363,7 @@ static void merge(List_T * a, List_T * b)
void MergeViews(int all) void MergeViews(int all)
{ {
// sanity check // sanity check
int first = 1, nbt; int first = 1, nbt = 0;
for(int i = 0; i < List_Nbr(CTX.post.list) - 1; i++) { for(int i = 0; i < List_Nbr(CTX.post.list) - 1; i++) {
Post_View *v = (Post_View *) List_Pointer(CTX.post.list, i); Post_View *v = (Post_View *) List_Pointer(CTX.post.list, i);
if(all || v->Visible) { if(all || v->Visible) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library * GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2003 Christophe Geuzaine * Copyright (C) 1999-2003 Christophe Geuzaine
* *
* $Id: gl2ps.cpp,v 1.63 2003-03-10 16:21:38 geuzaine Exp $ * $Id: gl2ps.cpp,v 1.64 2003-04-14 22:55:56 geuzaine Exp $
* *
* E-mail: geuz@geuz.org * E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/ * URL: http://www.geuz.org/gl2ps/
...@@ -1319,7 +1319,7 @@ void gl2psPrintPostScriptPixmap(GLfloat x, GLfloat y, GLsizei width, GLsizei hei ...@@ -1319,7 +1319,7 @@ void gl2psPrintPostScriptPixmap(GLfloat x, GLfloat y, GLsizei width, GLsizei hei
FILE *stream){ FILE *stream){
typedef unsigned char Uchar; typedef unsigned char Uchar;
int status = 1, nbhex, nbyte2, nbyte4, nbyte8; int status = 1, nbhex, nbyte2, nbyte4, nbyte8;
unsigned int row, col, col_max; GLsizei row, col, col_max;
float dr, dg, db, fgrey; float dr, dg, db, fgrey;
Uchar red, green, blue, b, grey; Uchar red, green, blue, b, grey;
/* FIXME: this has to be generalized... */ /* FIXME: this has to be generalized... */
......
// $Id: Read_Mesh.cpp,v 1.53 2003-03-21 00:52:41 geuzaine Exp $ // $Id: Read_Mesh.cpp,v 1.54 2003-04-14 22:55:56 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -90,7 +90,7 @@ void Read_Mesh_MSH(Mesh * M, FILE * File_GEO) ...@@ -90,7 +90,7 @@ void Read_Mesh_MSH(Mesh * M, FILE * File_GEO)
{ {
char String[256]; char String[256];
int Nbr_Nodes, Nbr_Elements, i_Node, i_Element; int Nbr_Nodes, Nbr_Elements, i_Node, i_Element;
int Num, Type, Physical, Elementary, i, j, replace; int Num, Type, Physical, Elementary, i, j;
double x, y, z, lc1, lc2; double x, y, z, lc1, lc2;
Vertex *vert, verts[NB_NOD_MAX_ELM], *vertsp[NB_NOD_MAX_ELM], **vertspp; Vertex *vert, verts[NB_NOD_MAX_ELM], *vertsp[NB_NOD_MAX_ELM], **vertspp;
Simplex *simp; Simplex *simp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment