add_definitions(-DUSE_WINE_TODOS)
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
list(APPEND SOURCE
advpack.c
files.c
add_definitions(-DUSE_WINE_TODOS)
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
list(APPEND SOURCE
asmcache.c
asmenum.c
include_directories($<TARGET_FILE_DIR:custom>)
endif()
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
spec2def(custom.dll custom.spec)
add_library(custom MODULE custom.c ${CMAKE_CURRENT_BINARY_DIR}/custom.def)
target_link_libraries(custom uuid)
add_compile_flags("/wd4477")
endif()
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-stringop-truncation")
+endif()
+
list(APPEND SOURCE
cpp.c
data.c
#include <errno.h>
#include "wine/test.h"
+#ifdef __REACTOS__
+#if defined(__GNUC__) && __GNUC__ >= 7
+#pragma GCC diagnostic ignored "-Walloc-size-larger-than=9223372036854775807"
+#endif
+#endif
+
static void (__cdecl *p_aligned_free)(void*) = NULL;
static void * (__cdecl *p_aligned_malloc)(size_t,size_t) = NULL;
static void * (__cdecl *p_aligned_offset_malloc)(size_t,size_t,size_t) = NULL;
mem = realloc(NULL, 10);
ok(mem != NULL, "memory not allocated\n");
-
+
mem = realloc(mem, 20);
ok(mem != NULL, "memory not reallocated\n");
-
+
mem = realloc(mem, 0);
ok(mem == NULL, "memory not freed\n");
-
+
mem = realloc(NULL, 0);
ok(mem != NULL, "memory not (re)allocated for size 0\n");
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
add_executable(services_winetest service.c testlist.c)
set_module_type(services_winetest win32cui)
add_importlibs(services_winetest user32 advapi32 msvcrt kernel32)
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
list(APPEND SOURCE
devinst.c
dialog.c
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
list(APPEND SOURCE
appbar.c
assoc.c
if(MSVC)
# Disable warning C4477 (printf format warnings)
add_compile_flags("/wd4477")
+elseif(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
endif()
list(APPEND SOURCE
dce.c
dde.c
dialog.c
- edit.c
+ edit.c
generated.c
input.c
listbox.c
add_definitions(-DUSE_WINE_TODOS)
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-format-overflow")
+endif()
+
list(APPEND SOURCE
info.c
install.c
-DUSE_WINE_TODOS
-DWINETEST_USE_DBGSTR_LONGLONG)
+# to be removed after synching with newer Wine
+if(GCC AND GCC_VERSION VERSION_GREATER 7)
+ add_compile_flags("-Wno-stringop-overflow")
+endif()
+
list(APPEND SOURCE
bitmap.c
bmpformat.c
skip("Skipping test_persistent_connection due to hang. See ROSTESTS-295.\n");
}
else
-#endif
+{
test_persistent_connection( si.port );
+}
+#else
+ test_persistent_connection( si.port );
+#endif
/* send the basic request again to shutdown the server thread */
test_basic_request( si.port, NULL, quitW );