mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
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
This commit is contained in:
parent
7ba4af6ab0
commit
0f8f05db29
4 changed files with 20 additions and 10 deletions
|
|
@ -33,11 +33,14 @@
|
|||
#include "serial.h"
|
||||
#include "power.h"
|
||||
#include "powermgmt.h"
|
||||
#if defined(HAVE_SDL) && (SDL_MAJOR_VERSION > 1)
|
||||
#if defined(HAVE_SDL)
|
||||
#include <SDL.h>
|
||||
#if (SDL_MAJOR_VERSION > 1)
|
||||
#include "button-sdl.h"
|
||||
#else
|
||||
#include "button-target.h"
|
||||
#endif
|
||||
#endif /* HAVE_SDL */
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
#include "lcd-remote.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@ Lyre prototype 1 */
|
|||
#elif defined(RG_NANO)
|
||||
#include "config/rgnano.h"
|
||||
#else
|
||||
//#error "unknown hwardware platform!"
|
||||
#error "unknown hardware platform!"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_CPU
|
||||
|
|
@ -649,8 +649,10 @@ Lyre prototype 1 */
|
|||
#endif
|
||||
|
||||
#ifdef APPLICATION
|
||||
#ifndef CONFIG_CPU
|
||||
#define CONFIG_CPU 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* keep this include after the target configs */
|
||||
#ifdef SIMULATOR
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
target specific configs */
|
||||
|
||||
#undef CONFIG_CPU
|
||||
#define CONFIG_CPU 0
|
||||
|
||||
#undef HAVE_FMADC
|
||||
|
||||
|
|
@ -17,6 +18,8 @@
|
|||
#undef HAVE_ATA_POWER_OFF
|
||||
|
||||
#undef CONFIG_LCD
|
||||
#define CONFIG_LCD 0
|
||||
|
||||
#undef LCD_DPI /* likely to be too different on a PC */
|
||||
|
||||
#undef CONFIG_LED
|
||||
|
|
@ -86,7 +89,8 @@
|
|||
|
||||
#undef BUTTON_DRIVER_CLOSE
|
||||
|
||||
#if CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG
|
||||
#if defined(CONFIG_BACKLIGHT_FADING)
|
||||
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG)
|
||||
#undef CONFIG_BACKLIGHT_FADING
|
||||
/* simulate SW_SETTING, as we handle sdl very similary */
|
||||
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
|
||||
|
|
@ -95,7 +99,8 @@
|
|||
CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET)
|
||||
/* we don't simulate that yet */
|
||||
#undef CONFIG_BACKLIGHT_FADING
|
||||
#endif
|
||||
#endif /* CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG */
|
||||
#endif /* defined(CONFIG_BACKLIGHT_FADING) */
|
||||
|
||||
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||
#undef DEFAULT_BRIGHTNESS_SETTING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue