Skip to content

Commit 41ab6d9

Browse files
committedJan 23, 2016
firmware/lm32: fix warnings and use -Werror (requires Misoc update)
1 parent 061421e commit 41ab6d9

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎firmware/lm32/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
MSCDIR=../../third_party/misoc
33
include $(MSCDIR)/software/common.mak
44

5+
CFLAGS += -Wno-unused-function -Werror
6+
57
OBJECTS=isr.o \
68
processor.o \
79
hdmi_in0.o \

‎firmware/lm32/ci.c

+2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ static void video_mode_set(int mode)
310310

311311
static void hdp_toggle(int source)
312312
{
313+
#if defined(CSR_HDMI_IN0_BASE) || defined(CSR_HDMI_IN1_BASE)
313314
int i;
315+
#endif
314316
printf("Toggling HDP on output%d\n", source);
315317
#ifdef CSR_HDMI_IN0_BASE
316318
if(source == VIDEO_IN_HDMI_IN0) {

‎firmware/lm32/fx2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ enum fx2_fw_version fx2_fw_active;
2424
static size_t next_read_addr;
2525
static size_t end_addr;
2626

27-
inline uint8_t fx2_fw_get_value(size_t addr) {
27+
static inline uint8_t fx2_fw_get_value(size_t addr) {
2828
uint8_t r = 0xff;
2929
if (addr <= end_addr) {
3030
switch(fx2_fw_active) {

‎firmware/lm32/processor.c

+2
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,10 @@ static void fb_set_mode(const struct video_timing *mode)
347347

348348
static void edid_set_mode(const struct video_timing *mode)
349349
{
350+
#if defined(CSR_HDMI_IN0_BASE) || defined(CSR_HDMI_IN1_BASE)
350351
unsigned char edid[128];
351352
int i;
353+
#endif
352354
#ifdef CSR_HDMI_IN0_BASE
353355
generate_edid(&edid, "OHW", "TV", 2015, "HDMI2USB 1", mode);
354356
for(i=0;i<sizeof(edid);i++)

0 commit comments

Comments
 (0)
Please sign in to comment.