A handful of changes after applying pull request #191 from
Alessandro De Laurenzis. That pull request cleaned up the vast majority of compiler warnings. However, that cleanup exposed a few additional warnings pointing to errors in the code that needed fixing. The code now compiles cleanly except for one warning about redefined CAD_DIR that I have not looked into.
This commit is contained in:
parent
70ebfb831b
commit
d229aefb15
|
|
@ -299,7 +299,7 @@ done:
|
||||||
HashKill(&calmaDefInitHash);
|
HashKill(&calmaDefInitHash);
|
||||||
UndoEnable();
|
UndoEnable();
|
||||||
|
|
||||||
if (calmaErrorFile != NULL) FCLOSE(calmaErrorFile);
|
if (calmaErrorFile != NULL) fclose(calmaErrorFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h> /* For qsort() */
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
#include "utils/geometry.h"
|
#include "utils/geometry.h"
|
||||||
#include "tiles/tile.h"
|
#include "tiles/tile.h"
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,8 @@ CmdCalma(w, cmd)
|
||||||
char **msg, *namep, *dotptr;
|
char **msg, *namep, *dotptr;
|
||||||
char writeMode[3];
|
char writeMode[3];
|
||||||
CellDef *rootDef;
|
CellDef *rootDef;
|
||||||
FILE *f;
|
FILETYPE f;
|
||||||
|
FILE *fp;
|
||||||
#ifdef HAVE_ZLIB
|
#ifdef HAVE_ZLIB
|
||||||
gzFile fz;
|
gzFile fz;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -966,19 +967,19 @@ outputCalma:
|
||||||
{
|
{
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
f = PaOpen(namep, "w", (dotptr == NULL) ? ".gds" : "", ".", (char *) NULL, (char **)NULL);
|
fp = PaOpen(namep, "w", (dotptr == NULL) ? ".gds" : "", ".", (char *) NULL, (char **)NULL);
|
||||||
if (f == (FILE *)NULL)
|
if (fp == (FILE *)NULL)
|
||||||
{
|
{
|
||||||
TxError("Cannot open %s%s to write GDS-II stream output\n", namep,
|
TxError("Cannot open %s%s to write GDS-II stream output\n", namep,
|
||||||
(dotptr == NULL) ? ".gds" : "");
|
(dotptr == NULL) ? ".gds" : "");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!CalmaWrite(rootDef, f))
|
if (!CalmaWrite(rootDef, fp))
|
||||||
{
|
{
|
||||||
TxError("I/O error in writing file %s.\n", namep);
|
TxError("I/O error in writing file %s.\n", namep);
|
||||||
TxError("File may be incompletely written.\n");
|
TxError("File may be incompletely written.\n");
|
||||||
}
|
}
|
||||||
(void) fclose(f);
|
(void) fclose(fp);
|
||||||
|
|
||||||
#ifdef HAVE_ZLIB
|
#ifdef HAVE_ZLIB
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||||
#include "debug/debug.h"
|
#include "debug/debug.h"
|
||||||
|
|
||||||
/* C99 compat */
|
/* C99 compat */
|
||||||
#include "gaRouter/gaInternal.h"
|
#include "garouter/gaInternal.h"
|
||||||
|
|
||||||
/* List of all active channels */
|
/* List of all active channels */
|
||||||
GCRChannel *gaChannelList = NULL;
|
GCRChannel *gaChannelList = NULL;
|
||||||
|
|
|
||||||
|
|
@ -1337,6 +1337,7 @@ GrTOGLLower(w)
|
||||||
|
|
||||||
#ifdef CAIRO_OFFSCREEN_RENDER
|
#ifdef CAIRO_OFFSCREEN_RENDER
|
||||||
extern void GrTCairoLock();
|
extern void GrTCairoLock();
|
||||||
|
extern void GrTCairoUnlock();
|
||||||
extern void TCairoOffScreen();
|
extern void TCairoOffScreen();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||||
#endif /* lint */
|
#endif /* lint */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h> /* For qsort() */
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
#include "utils/geometry.h"
|
#include "utils/geometry.h"
|
||||||
#include "utils/hash.h"
|
#include "utils/hash.h"
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifndef SYSV
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif /* SYSV */
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "utils/tech.h"
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue