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:
Solomon Peachy 2025-10-12 16:10:13 -04:00
parent 7ba4af6ab0
commit 0f8f05db29
4 changed files with 20 additions and 10 deletions

View file

@ -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