From 2082d7e1978952138155be7dce29f20004bd71a5 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 21 Sep 2013 16:41:23 +0000 Subject: Fixes STR# 2973: collection of Sun compiler fixes. Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_call_main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fl_call_main.c') diff --git a/src/fl_call_main.c b/src/fl_call_main.c index e6e57c978..89e8762df 100644 --- a/src/fl_call_main.c +++ b/src/fl_call_main.c @@ -126,6 +126,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, #elif defined(__hpux) /* This code to prevent "empty translation unit" or similar warnings... */ static void dummy(void) {} +#else +/* This is perhaps a better code for general cases than 'static void dummy() {}' to avoid "empty translation unit" (e.g. Sun) */ +typedef int dummy; #endif /* WIN32 && !FL_DLL && !__GNUC__ */ /* -- cgit v1.2.3