Hoernchen has uploaded this change for review.

View Change

fix some warnings and add some warning flags

Change-Id: I55e1de7fe8428a5c6cdf741cdc0ae7c47aa7c8d8
---
M ccid_common/ccid_slot_fsm.c
M sysmoOCTSIM/gcc/Makefile
M sysmoOCTSIM/main.c
3 files changed, 7 insertions(+), 3 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/48/39448/1
diff --git a/ccid_common/ccid_slot_fsm.c b/ccid_common/ccid_slot_fsm.c
index 788e3ae..eb0c145 100644
--- a/ccid_common/ccid_slot_fsm.c
+++ b/ccid_common/ccid_slot_fsm.c
@@ -22,6 +22,9 @@
#include <errno.h>
#include <string.h>

+#ifdef OCTSIMFWBUILD
+#include "hal/include/hal_delay.h"
+#endif
#include <osmocom/core/msgb.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/logging.h>
diff --git a/sysmoOCTSIM/gcc/Makefile b/sysmoOCTSIM/gcc/Makefile
index a465287..0f2a909 100644
--- a/sysmoOCTSIM/gcc/Makefile
+++ b/sysmoOCTSIM/gcc/Makefile
@@ -11,7 +11,8 @@

CFLAGS_CPU=-D__SAME54N19A__ -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16
CFLAGS=-x c -mthumb -DDEBUG -Os -ffunction-sections -fdata-sections -mlong-calls \
- -g3 -Wall -c -std=gnu99 $(CFLAGS_CPU) -DOCTSIMFWBUILD -DDISABLE_DFU_DETACH=$(DISABLE_DFU_DETACH) -Wno-discarded-qualifiers -Werror=strict-prototypes
+ -fno-omit-frame-pointer -ggdb3 -Wall -c -std=gnu99 $(CFLAGS_CPU) -DOCTSIMFWBUILD -DDISABLE_DFU_DETACH=$(DISABLE_DFU_DETACH) -Wno-discarded-qualifiers -Werror=strict-prototypes -fno-common -Wno-unused-variable -Wno-unused-function -Wlarger-than=512 -Wstack-usage=255
+

CFLAGS += -DLIBOSMOCORE_NO_LOGGING

diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index 7fd6ee7..5115743 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -17,9 +17,9 @@
*/

#include <stdlib.h>
-#include <inttypes.h>
+// #include <inttypes.h>
#include <stdio.h>
-#include <math.h>
+// #include <math.h>
#include <parts.h>
#include <errno.h>


To view, visit change 39448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I55e1de7fe8428a5c6cdf741cdc0ae7c47aa7c8d8
Gerrit-Change-Number: 39448
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild@sysmocom.de>