Gerald Pfeifer : libwine: Only define exe_link when needed.
Module: wine Branch: master Commit: 208b824ecd24a22c0dd0cb9cbeaaefda3d78e4cd URL: https://gitlab.winehq.org/wine/wine/-/commit/208b824ecd24a22c0dd0cb9cbeaaefd... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Sat Dec 17 02:21:13 2022 +0100 libwine: Only define exe_link when needed. Revision 24b26f8bd6a49c855eec417a6585d44c9458e3ec changed FreeBSD (and DragonFly) not to use /proc any longer. Hence we also do not need the exe_link variable on those two platforms, either. Avoid declaring it there. (This avoids a compiler warning with GCC 12.) --- libs/wine/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index 4eb446258cc..34ede6ed0a6 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -60,7 +60,7 @@ static void fatal_error( const char *err, ... ) __attribute__((noreturn,format( #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) static const char exe_link[] = "/proc/self/exe"; -#else +#elif ! defined (__FreeBSD__) && ! defined(__DragonFly__) static const char exe_link[] = ""; #endif
participants (1)
-
Alexandre Julliard