Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
firmware/lm32: fix warnings and use -Werror (requires Misoc update)
  • Loading branch information
enjoy-digital committed Jan 23, 2016
1 parent 061421e commit 41ab6d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions firmware/lm32/Makefile
Expand Up @@ -2,6 +2,8 @@
MSCDIR=../../third_party/misoc
include $(MSCDIR)/software/common.mak

CFLAGS += -Wno-unused-function -Werror

OBJECTS=isr.o \
processor.o \
hdmi_in0.o \
Expand Down
2 changes: 2 additions & 0 deletions firmware/lm32/ci.c
Expand Up @@ -310,7 +310,9 @@ static void video_mode_set(int mode)

static void hdp_toggle(int source)
{
#if defined(CSR_HDMI_IN0_BASE) || defined(CSR_HDMI_IN1_BASE)
int i;
#endif
printf("Toggling HDP on output%d\n", source);
#ifdef CSR_HDMI_IN0_BASE
if(source == VIDEO_IN_HDMI_IN0) {
Expand Down
2 changes: 1 addition & 1 deletion firmware/lm32/fx2.c
Expand Up @@ -24,7 +24,7 @@ enum fx2_fw_version fx2_fw_active;
static size_t next_read_addr;
static size_t end_addr;

inline uint8_t fx2_fw_get_value(size_t addr) {
static inline uint8_t fx2_fw_get_value(size_t addr) {
uint8_t r = 0xff;
if (addr <= end_addr) {
switch(fx2_fw_active) {
Expand Down
2 changes: 2 additions & 0 deletions firmware/lm32/processor.c
Expand Up @@ -347,8 +347,10 @@ static void fb_set_mode(const struct video_timing *mode)

static void edid_set_mode(const struct video_timing *mode)
{
#if defined(CSR_HDMI_IN0_BASE) || defined(CSR_HDMI_IN1_BASE)
unsigned char edid[128];
int i;
#endif
#ifdef CSR_HDMI_IN0_BASE
generate_edid(&edid, "OHW", "TV", 2015, "HDMI2USB 1", mode);
for(i=0;i<sizeof(edid);i++)
Expand Down

0 comments on commit 41ab6d9

Please sign in to comment.