Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlang
1001-odbc-Fix-windows-compiler-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1001-odbc-Fix-windows-compiler-warnings.patch of Package erlang
From b6f693786fb87164c42c30898eecff4c594a3e20 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Fri, 24 Apr 2020 11:39:37 +0200 Subject: [PATCH 7/7] odbc: Fix windows compiler warnings Change typedef 'byte' to 'unsigned char' to get rid of "warning C4142: 'byte': benign redefinition of type". --- lib/odbc/c_src/odbcserver.c | 2 +- lib/odbc/c_src/odbcserver.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c index fb4f61417e..996c122199 100644 --- a/lib/odbc/c_src/odbcserver.c +++ b/lib/odbc/c_src/odbcserver.c @@ -304,7 +304,7 @@ int main(void) static void spawn_sup(const char *port) { DWORD threadId; - (HANDLE)_beginthreadex(NULL, 0, supervise, port, 0, &threadId); + _beginthreadex(NULL, 0, supervise, port, 0, &threadId); } #elif defined(UNIX) static void spawn_sup(const char *port) diff --git a/lib/odbc/c_src/odbcserver.h b/lib/odbc/c_src/odbcserver.h index 0461c57d1f..28bb2b9030 100644 --- a/lib/odbc/c_src/odbcserver.h +++ b/lib/odbc/c_src/odbcserver.h @@ -120,7 +120,7 @@ /*------------------------ TYPDEFS ----------------------------------*/ -typedef char byte; +typedef unsigned char byte; typedef int Boolean; typedef struct { -- 2.26.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor