Silence warning about pointer cast to int.
This cast was safe because the pointer is a small constant integer, but it causes warning from gcc.
This commit is contained in:
parent
ddf9de3f49
commit
974fa93491
|
@ -5,6 +5,7 @@
|
||||||
/* next line DEBUG */
|
/* next line DEBUG */
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <em_arith.h>
|
#include <em_arith.h>
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
|
|
||||||
#define PC_BUFSIZ (sizeof(struct file) - (int)((struct file *)0)->bufadr)
|
#define PC_BUFSIZ (sizeof(struct file) - offsetof(struct file, bufadr))
|
||||||
|
|
||||||
int proclevel = 0; /* nesting level of procedures */
|
int proclevel = 0; /* nesting level of procedures */
|
||||||
int parlevel = 0; /* nesting level of parametersections */
|
int parlevel = 0; /* nesting level of parametersections */
|
||||||
|
|
Loading…
Reference in a new issue