projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c1bb1f
)
コンパイル時のオプションとしてWextraを追加し、警告を修正
author
j8takagi
<j8takagi@nifty.com>
Thu, 14 Apr 2011 23:12:19 +0000
(08:12 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Thu, 14 Apr 2011 23:12:19 +0000
(08:12 +0900)
include/struct.h
patch
|
blob
|
history
src/Makefile
patch
|
blob
|
history
diff --git
a/include/struct.h
b/include/struct.h
index
88ecda9
..
61fc03b
100644
(file)
--- a/
include/struct.h
+++ b/
include/struct.h
@@
-39,7
+39,7
@@
typedef struct {
CPU *cpu; /**<CPU */
WORD *memory; /**<メモリ */
int memsize; /**<メモリサイズ */
-
int
clocks; /**<クロック周波数 */
+
unsigned
clocks; /**<クロック周波数 */
} SYSTEM;
extern SYSTEM *sys;
diff --git
a/src/Makefile
b/src/Makefile
index
93a2449
..
188d00d
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,6
+1,6
@@
INCLUDE := ../include
CC := gcc
-CFLAGS := -g -Wall -I $(INCLUDE)
+CFLAGS := -g -Wall -
Wextra -
I $(INCLUDE)
RM := rm -f
COMMONSRC := word.c cmem.c cerr.c