Commit 56bb6360 authored by Damien George's avatar Damien George
Browse files

Change -Og to -O0 in unix-cpy/Makefile; cast to small int in socket.c.

parent 554a75b6
...@@ -10,9 +10,9 @@ include ../py/py.mk ...@@ -10,9 +10,9 @@ include ../py/py.mk
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
LDFLAGS = -lm LDFLAGS = -lm
#Debugging/Optimization # Debugging/Optimization
ifdef DEBUG ifdef DEBUG
CFLAGS += -Og -ggdb CFLAGS += -O0 -g
else else
CFLAGS += -Os #-DNDEBUG CFLAGS += -Os #-DNDEBUG
endif endif
......
...@@ -13,7 +13,7 @@ include ../py/py.mk ...@@ -13,7 +13,7 @@ include ../py/py.mk
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
LDFLAGS = -lm LDFLAGS = -lm
#Debugging/Optimization # Debugging/Optimization
ifdef DEBUG ifdef DEBUG
CFLAGS += -O0 -g CFLAGS += -O0 -g
else else
......
...@@ -362,6 +362,6 @@ void rawsocket_init() { ...@@ -362,6 +362,6 @@ void rawsocket_init() {
#endif #endif
rt_store_attr(m, MP_QSTR_getaddrinfo, (mp_obj_t)&mod_socket_getaddrinfo_obj); rt_store_attr(m, MP_QSTR_getaddrinfo, (mp_obj_t)&mod_socket_getaddrinfo_obj);
for (struct sym_entry *p = constants; p->sym != NULL; p++) { for (struct sym_entry *p = constants; p->sym != NULL; p++) {
rt_store_attr(m, QSTR_FROM_STR_STATIC(p->sym), MP_OBJ_NEW_SMALL_INT(p->val)); rt_store_attr(m, QSTR_FROM_STR_STATIC(p->sym), MP_OBJ_NEW_SMALL_INT((machine_int_t)p->val));
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment