A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: Enforce -Wundef on all targets.

Simulators (and some hosted targets) no longer get a free pass!

This commit includes general fixes for simulator builds, but it
will undoubtedly result in many more warnings that need to be properly
fixed.

Change-Id: I6bb9d3fc4a29ccfe40366c438e058b5dfff0ddc3

+20 -10
+4 -1
firmware/drivers/button.c
··· 33 33 #include "serial.h" 34 34 #include "power.h" 35 35 #include "powermgmt.h" 36 - #if defined(HAVE_SDL) && (SDL_MAJOR_VERSION > 1) 36 + #if defined(HAVE_SDL) 37 + #include <SDL.h> 38 + #if (SDL_MAJOR_VERSION > 1) 37 39 #include "button-sdl.h" 38 40 #else 39 41 #include "button-target.h" 40 42 #endif 43 + #endif /* HAVE_SDL */ 41 44 #ifdef HAVE_REMOTE_LCD 42 45 #include "lcd-remote.h" 43 46 #endif
+3 -1
firmware/export/config.h
··· 623 623 #elif defined(RG_NANO) 624 624 #include "config/rgnano.h" 625 625 #else 626 - //#error "unknown hwardware platform!" 626 + #error "unknown hardware platform!" 627 627 #endif 628 628 629 629 #ifndef CONFIG_CPU ··· 649 649 #endif 650 650 651 651 #ifdef APPLICATION 652 + #ifndef CONFIG_CPU 652 653 #define CONFIG_CPU 0 654 + #endif 653 655 #endif 654 656 655 657 /* keep this include after the target configs */
+7 -2
firmware/export/config/sim.h
··· 2 2 target specific configs */ 3 3 4 4 #undef CONFIG_CPU 5 + #define CONFIG_CPU 0 5 6 6 7 #undef HAVE_FMADC 7 8 ··· 17 18 #undef HAVE_ATA_POWER_OFF 18 19 19 20 #undef CONFIG_LCD 21 + #define CONFIG_LCD 0 22 + 20 23 #undef LCD_DPI /* likely to be too different on a PC */ 21 24 22 25 #undef CONFIG_LED ··· 86 89 87 90 #undef BUTTON_DRIVER_CLOSE 88 91 89 - #if CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG 92 + #if defined(CONFIG_BACKLIGHT_FADING) 93 + #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) 90 94 #undef CONFIG_BACKLIGHT_FADING 91 95 /* simulate SW_SETTING, as we handle sdl very similary */ 92 96 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING ··· 95 99 CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET) 96 100 /* we don't simulate that yet */ 97 101 #undef CONFIG_BACKLIGHT_FADING 98 - #endif 102 + #endif /* CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG */ 103 + #endif /* defined(CONFIG_BACKLIGHT_FADING) */ 99 104 100 105 #ifdef HAVE_BACKLIGHT_BRIGHTNESS 101 106 #undef DEFAULT_BRIGHTNESS_SETTING
+6 -6
tools/configure
··· 262 262 app_type=$1 263 263 winbuild="" 264 264 macbuild="" 265 - GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//` 265 + GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib//` 266 266 267 267 if [ "yes" = "$use_debug" ]; then 268 268 GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/` ··· 638 638 # Scratchbox sets up "gcc" based on the active target 639 639 prefixtools "" 640 640 641 - GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 641 + GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//` 642 642 GCCOPTS="$GCCOPTS -fno-builtin -g -I\$(SIMDIR)" 643 643 GCCOPTIMIZE='' 644 644 LDOPTS="-lm -ldl $LDOPTS" ··· 733 733 LDOPTS="-L$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib -Wl,-rpath,$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib $LDOPTS" 734 734 PKG_CONFIG="pkg-config" 735 735 736 - GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 736 + GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//` 737 737 GCCOPTS="$GCCOPTS -fno-builtin -g -I\$(SIMDIR)" 738 738 GCCOPTIMIZE='' 739 739 LDOPTS="-lm -ldl $LDOPTS" ··· 813 813 814 814 # the prebuilt android NDK only supports x86_64 architecture anyway, so we can take shortcuts 815 815 buildhost=$(uname | tr "[:upper:]" "[:lower:]")-x86_64 816 - GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 816 + GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//` 817 817 LDOPTS="$LDOPTS -ldl -llog" 818 818 if [ "$modelname" != "ibassodx50" ] && [ "$modelname" != "ibassodx90" ]; then 819 819 LDOPTS="$LDOPTS -Wl,-soname,librockbox.so -shared" ··· 903 903 # the prebuilt android NDK only supports x86_64 architecture anyway, so we can take shortcuts 904 904 buildhost=$(uname -s | tr "[:upper:]" "[:lower:]")-x86_64 905 905 906 - GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 906 + GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//` 907 907 LDOPTS="$LDOPTS -ldl -llog" 908 908 SHARED_LDFLAGS="-shared" 909 909 SHARED_CFLAGS='' ··· 988 988 DLLWRAP=$FUNKEY_SDK_PATH/bin/arm-funkey-linux-musleabihf-dllwrap 989 989 RANLIB=$FUNKEY_SDK_PATH/bin/arm-funkey-linux-musleabihf-gcc-ranlib 990 990 991 - GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//` 991 + GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib//` 992 992 993 993 if [ "yes" = "$use_debug" ]; then 994 994 GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os/\ -Og/`