enable -Werror except for -Wformat, -Wformat-extra-args, -Wpointer-to-int-cast, -Wint-to-pointor-cast.
Change-Id: I79a7f3a9678d3321c4989333f07f9eec4ba0522e
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
if (credp->fc_gid != -1) {
gid = credp->fc_gid;
}
+// FIXME
+#ifndef CONFIG_WIN32
if (credp->fc_mode != -1) {
mode = credp->fc_mode;
}
+#else
+ mode = credp->fc_mode;
+#endif
if (credp->fc_rdev != -1) {
rdev = credp->fc_rdev;
}
echo "##### QEMU configuring for emulator"
echo "##### QEMU configure append:" $CONFIGURE_APPEND
exec ./configure \
- --extra-cflags=-Werror=implicit-function-declaration \
- --extra-cflags=-Werror=implicit-int \
+ --enable-werror \
+ --extra-cflags=-Wno-error=format \
+ --extra-cflags=-Wno-error=format-extra-args \
+ --extra-cflags=-Wno-error=pointer-to-int-cast \
+ --extra-cflags=-Wno-error=int-to-pointer-cast \
--extra-ldflags=-Wl,--large-address-aware \
--cc=gcc \
--disable-coroutine-pool \
#include "hw/pci/maru_brightness.h"
#include "debug_ch.h"
+#ifndef CONFIG_WIN32
+#include <SDL_syswm.h>
+#endif
+
MULTI_DEBUG_CHANNEL(tizen, maru_sdl);
static QEMUBH *sdl_init_bh;
#define MARU_SDL_H_
#include <SDL.h>
-#include <SDL_syswm.h>
#include "ui/console.h"
extern DisplayChangeListenerOps maru_dcl_ops;
if(send( s, (char*)request_type, request_size, 0 ) < 0) {
ERR("failed to send to emuld\n");
}
- if(send( s, &buf_size, 4, 0 ) < 0) {
+ if(send( s, (char*)&buf_size, 4, 0 ) < 0) {
ERR("failed to send to emuld\n");
}
if(send( s, (char*)send_buf, buf_size, 0 ) < 0) {
}
#ifdef CONFIG_WIN32
-static LONG maru_unhandled_exception_filter(PEXCEPTION_POINTERS pExceptionInfo){
+static WINAPI LONG maru_unhandled_exception_filter(LPEXCEPTION_POINTERS pExceptionInfo){
char module_buf[1024];
DWORD dwException = pExceptionInfo->ExceptionRecord->ExceptionCode;
ERR("%d\n ", (int)dwException);
int check_port_bind_listen(uint32_t port)
{
struct sockaddr_in addr;
- int s, opt = 1;
+ int s = 0;
int ret = -1;
socklen_t addrlen = sizeof(addr);
memset(&addr, 0, addrlen);
}
#ifndef _WIN32
+ int opt = 1;
ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
(char *)&opt, sizeof(int));
if (ret < 0) {