mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
- gcc 4.4.0 bringup 1 of ?:
- servman: Disable unused, static function - explorer, mpu401: Fix "deprecated conversion from string constant to 'xxx'" under - ws2_32_new, portcls: Hack around bogus uninitialized variable usage warning for - glu32: Fix various warnings and errors svn path=/trunk/; revision=42970
This commit is contained in:
parent
07d6ee8ed5
commit
b0f1241ccb
19 changed files with 50 additions and 20 deletions
|
@ -50,6 +50,7 @@ AddItemToTreeView(HWND hTreeView,
|
||||||
return TreeView_InsertItem(hTreeView, &tvins);
|
return TreeView_InsertItem(hTreeView, &tvins);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static VOID
|
static VOID
|
||||||
AddServiceDependency(PSERVICEPROPSHEET dlgInfo,
|
AddServiceDependency(PSERVICEPROPSHEET dlgInfo,
|
||||||
HWND hTreeView,
|
HWND hTreeView,
|
||||||
|
@ -123,6 +124,7 @@ AddServiceDependency(PSERVICEPROPSHEET dlgInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
AddServiceDependent(HWND hTreeView,
|
AddServiceDependent(HWND hTreeView,
|
||||||
|
|
|
@ -153,6 +153,11 @@ MainFrameBase::MainFrameBase(HWND hwnd)
|
||||||
: super(hwnd)
|
: super(hwnd)
|
||||||
{
|
{
|
||||||
HDC hDC = GetDC(NULL);
|
HDC hDC = GetDC(NULL);
|
||||||
|
#ifndef _NO_REBAR
|
||||||
|
//static WCHAR Title1[] = TEXT("Toolbar");
|
||||||
|
static WCHAR Title2[] = TEXT("Address :");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (hDC)
|
if (hDC)
|
||||||
{
|
{
|
||||||
DWORD ilMask;
|
DWORD ilMask;
|
||||||
|
@ -264,7 +269,7 @@ MainFrameBase::MainFrameBase(HWND hwnd)
|
||||||
rbBand.cyMaxChild = 0;
|
rbBand.cyMaxChild = 0;
|
||||||
rbBand.cyIntegral = btn_hgt;
|
rbBand.cyIntegral = btn_hgt;
|
||||||
|
|
||||||
rbBand.lpText = NULL;//TEXT("Toolbar");
|
rbBand.lpText = NULL;//Title1
|
||||||
rbBand.hwndChild = _htoolbar;
|
rbBand.hwndChild = _htoolbar;
|
||||||
rbBand.cxMinChild = 0;
|
rbBand.cxMinChild = 0;
|
||||||
rbBand.cyMinChild = btn_hgt;
|
rbBand.cyMinChild = btn_hgt;
|
||||||
|
@ -273,7 +278,7 @@ MainFrameBase::MainFrameBase(HWND hwnd)
|
||||||
|
|
||||||
rbBand.fStyle &= ~RBBS_HIDETITLE;
|
rbBand.fStyle &= ~RBBS_HIDETITLE;
|
||||||
rbBand.fStyle |= RBBS_BREAK;
|
rbBand.fStyle |= RBBS_BREAK;
|
||||||
rbBand.lpText = TEXT("Address :");
|
rbBand.lpText = Title2;
|
||||||
rbBand.hwndChild = _haddrcombo;
|
rbBand.hwndChild = _haddrcombo;
|
||||||
rbBand.cxMinChild = 0;
|
rbBand.cxMinChild = 0;
|
||||||
rbBand.cyMinChild = btn_hgt;
|
rbBand.cyMinChild = btn_hgt;
|
||||||
|
|
|
@ -42,7 +42,7 @@ enum IMAGE {
|
||||||
#define IMAGE_HEIGHT 13
|
#define IMAGE_HEIGHT 13
|
||||||
|
|
||||||
|
|
||||||
static const LPTSTR g_pos_names[COLUMNS] = {
|
static const TCHAR* g_pos_names[COLUMNS] = {
|
||||||
TEXT(""), /* symbol */
|
TEXT(""), /* symbol */
|
||||||
TEXT("Name"),
|
TEXT("Name"),
|
||||||
TEXT("Type"),
|
TEXT("Type"),
|
||||||
|
@ -141,7 +141,7 @@ bool Pane::create_header(HWND hparent, int id)
|
||||||
hdi.mask = HDI_TEXT|HDI_WIDTH|HDI_FORMAT;
|
hdi.mask = HDI_TEXT|HDI_WIDTH|HDI_FORMAT;
|
||||||
|
|
||||||
for(int idx=0; idx<COLUMNS; idx++) {
|
for(int idx=0; idx<COLUMNS; idx++) {
|
||||||
hdi.pszText = g_pos_names[idx];
|
hdi.pszText = (TCHAR*)g_pos_names[idx];
|
||||||
hdi.fmt = HDF_STRING | g_pos_align[idx];
|
hdi.fmt = HDF_STRING | g_pos_align[idx];
|
||||||
hdi.cxy = _widths[idx];
|
hdi.cxy = _widths[idx];
|
||||||
Header_InsertItem(hwnd, idx, &hdi);
|
Header_InsertItem(hwnd, idx, &hdi);
|
||||||
|
|
|
@ -246,7 +246,7 @@ Backend::evalVStrip(int n_left, REAL u_left, REAL* left_val,
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Backend::bgntmesh( char * )
|
Backend::bgntmesh( const char * )
|
||||||
{
|
{
|
||||||
#ifndef NOWIREFRAME
|
#ifndef NOWIREFRAME
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ public:
|
||||||
void surfbbox( long, REAL *, REAL * );
|
void surfbbox( long, REAL *, REAL * );
|
||||||
void surfgrid( REAL, REAL, long, REAL, REAL, long );
|
void surfgrid( REAL, REAL, long, REAL, REAL, long );
|
||||||
void surfmesh( long, long, long, long );
|
void surfmesh( long, long, long, long );
|
||||||
void bgntmesh( char * );
|
void bgntmesh( const char * );
|
||||||
void endtmesh( void );
|
void endtmesh( void );
|
||||||
void swaptmesh( void );
|
void swaptmesh( void );
|
||||||
void tmeshvert( GridTrimVertex * );
|
void tmeshvert( GridTrimVertex * );
|
||||||
|
|
|
@ -120,7 +120,7 @@ Bin::adopt()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
Bin::show( char *name )
|
Bin::show( const char *name )
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
dprintf( "%s\n", name );
|
dprintf( "%s\n", name );
|
||||||
|
|
|
@ -63,7 +63,7 @@ public:
|
||||||
int numarcs( void );
|
int numarcs( void );
|
||||||
void adopt( void );
|
void adopt( void );
|
||||||
void markall( void );
|
void markall( void );
|
||||||
void show( char * );
|
void show( const char * );
|
||||||
void listBezier( void );
|
void listBezier( void );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
* Pool - allocate a new pool of buffers
|
* Pool - allocate a new pool of buffers
|
||||||
*-----------------------------------------------------------------------------
|
*-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
Pool::Pool( int _buffersize, int initpoolsize, char *n )
|
Pool::Pool( int _buffersize, int initpoolsize, const char *n )
|
||||||
{
|
{
|
||||||
buffersize= (_buffersize < (int)sizeof(Buffer)) ? sizeof(Buffer) : _buffersize;
|
buffersize= (_buffersize < (int)sizeof(Buffer)) ? sizeof(Buffer) : _buffersize;
|
||||||
initsize = initpoolsize * buffersize;
|
initsize = initpoolsize * buffersize;
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Buffer {
|
||||||
|
|
||||||
class Pool {
|
class Pool {
|
||||||
public:
|
public:
|
||||||
Pool( int, int, char * );
|
Pool( int, int, const char * );
|
||||||
~Pool( void );
|
~Pool( void );
|
||||||
inline void* new_buffer( void );
|
inline void* new_buffer( void );
|
||||||
inline void free_buffer( void * );
|
inline void free_buffer( void * );
|
||||||
|
@ -74,7 +74,7 @@ protected:
|
||||||
int nextfree; /* byte offset past next free buffer */
|
int nextfree; /* byte offset past next free buffer */
|
||||||
int initsize;
|
int initsize;
|
||||||
enum Magic { is_allocated = 0xf3a1, is_free = 0xf1a2 };
|
enum Magic { is_allocated = 0xf3a1, is_free = 0xf1a2 };
|
||||||
char *name; /* name of the pool */
|
const char *name; /* name of the pool */
|
||||||
Magic magic; /* marker for valid pool */
|
Magic magic; /* marker for valid pool */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -179,6 +179,13 @@ Subdivider::arc_split( Arc_ptr jarc, int param, REAL value, int dir )
|
||||||
TrimVertex* v = jarc->pwlArc->pts;
|
TrimVertex* v = jarc->pwlArc->pts;
|
||||||
|
|
||||||
int loc[3];
|
int loc[3];
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && \
|
||||||
|
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ == 40400)
|
||||||
|
/* Silence incorrect GCC 4.4.0 warnings */
|
||||||
|
loc[0] = loc[1] = loc[2] = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
switch( pwlarc_intersect( jarc->pwlArc, param, value, dir, loc ) ) {
|
switch( pwlarc_intersect( jarc->pwlArc, param, value, dir, loc ) ) {
|
||||||
|
|
||||||
// When the parameter value lands on a vertex, life is sweet
|
// When the parameter value lands on a vertex, life is sweet
|
||||||
|
|
|
@ -126,7 +126,7 @@ int Knotvector::validate( void )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Knotvector::show( char *msg )
|
void Knotvector::show( const char *msg )
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
dprintf( "%s\n", msg );
|
dprintf( "%s\n", msg );
|
||||||
|
|
|
@ -49,7 +49,7 @@ struct Knotvector { /* a knot vector */
|
||||||
~Knotvector( void );
|
~Knotvector( void );
|
||||||
void init( long, long, long, INREAL * );
|
void init( long, long, long, INREAL * );
|
||||||
int validate( void );
|
int validate( void );
|
||||||
void show( char * );
|
void show( const char * );
|
||||||
|
|
||||||
long order; /* order of spline */
|
long order; /* order of spline */
|
||||||
long knotcount; /* number of knots */
|
long knotcount; /* number of knots */
|
||||||
|
|
|
@ -677,7 +677,7 @@ NurbsTessellator::do_nurbserror( int msg )
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
NurbsTessellator::do_check_knots( Knotvector *knots, char *msg )
|
NurbsTessellator::do_check_knots( Knotvector *knots, const char *msg )
|
||||||
{
|
{
|
||||||
int status = knots->validate();
|
int status = knots->validate();
|
||||||
if( status ) {
|
if( status ) {
|
||||||
|
|
|
@ -112,7 +112,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void resetObjects( void );
|
void resetObjects( void );
|
||||||
int do_check_knots( Knotvector *, char * );
|
int do_check_knots( Knotvector *, const char * );
|
||||||
void do_nurbserror( int );
|
void do_nurbserror( int );
|
||||||
void do_bgncurve( O_curve * );
|
void do_bgncurve( O_curve * );
|
||||||
void do_endcurve( void );
|
void do_endcurve( void );
|
||||||
|
|
|
@ -531,16 +531,18 @@ Subdivider::nonSamplingSplit(
|
||||||
patchlist.pspec[param].range[1] ) * 0.5;
|
patchlist.pspec[param].range[1] ) * 0.5;
|
||||||
split( source, left, right, param, mid );
|
split( source, left, right, param, mid );
|
||||||
Patchlist subpatchlist( patchlist, param, mid );
|
Patchlist subpatchlist( patchlist, param, mid );
|
||||||
if( left.isnonempty() )
|
if( left.isnonempty() ) {
|
||||||
if( subpatchlist.cullCheck() == CULL_TRIVIAL_REJECT )
|
if( subpatchlist.cullCheck() == CULL_TRIVIAL_REJECT )
|
||||||
freejarcs( left );
|
freejarcs( left );
|
||||||
else
|
else
|
||||||
nonSamplingSplit( left, subpatchlist, subdivisions-1, param );
|
nonSamplingSplit( left, subpatchlist, subdivisions-1, param );
|
||||||
if( right.isnonempty() )
|
}
|
||||||
|
if( right.isnonempty() ) {
|
||||||
if( patchlist.cullCheck() == CULL_TRIVIAL_REJECT )
|
if( patchlist.cullCheck() == CULL_TRIVIAL_REJECT )
|
||||||
freejarcs( right );
|
freejarcs( right );
|
||||||
else
|
else
|
||||||
nonSamplingSplit( right, patchlist, subdivisions-1, param );
|
nonSamplingSplit( right, patchlist, subdivisions-1, param );
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// make bbox calls
|
// make bbox calls
|
||||||
|
|
|
@ -113,8 +113,8 @@ Int isCusp(directedLine *v)
|
||||||
else if(A[1] > B[1] && C[1] > B[1])
|
else if(A[1] > B[1] && C[1] > B[1])
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if(isAbove(v, v) && isAbove(v, v->getPrev()) ||
|
if((isAbove(v, v) && isAbove(v, v->getPrev())) ||
|
||||||
isBelow(v, v) && isBelow(v, v->getPrev()))
|
(isBelow(v, v) && isBelow(v, v->getPrev())))
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -52,6 +52,12 @@ select(IN INT s,
|
||||||
SOCKET Handle;
|
SOCKET Handle;
|
||||||
DPRINT("select: %lx %p %p %p %p\n", s, readfds, writefds, exceptfds, timeout);
|
DPRINT("select: %lx %p %p %p %p\n", s, readfds, writefds, exceptfds, timeout);
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && \
|
||||||
|
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ == 40400)
|
||||||
|
/* Silence incorrect GCC 4.4.0 warning */
|
||||||
|
Handle = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Check for WSAStartup */
|
/* Check for WSAStartup */
|
||||||
if ((ErrorCode = WsQuickProlog()) == ERROR_SUCCESS)
|
if ((ErrorCode = WsQuickProlog()) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,6 +80,12 @@ IUnregisterSubdevice_fnUnregisterSubdevice(
|
||||||
|
|
||||||
ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
|
ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && \
|
||||||
|
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ == 40400)
|
||||||
|
/* Silence incorrect GCC 4.4.0 warning */
|
||||||
|
SubDeviceEntry = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
DeviceExtension = (PPCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
DeviceExtension = (PPCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||||
ASSERT(DeviceExtension);
|
ASSERT(DeviceExtension);
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
#include <portcls.h>
|
#include <portcls.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
WCHAR DeviceName[] = L"Uart";
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
StartDevice(
|
StartDevice(
|
||||||
|
@ -68,7 +70,7 @@ StartDevice(
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("Registering subdevice via PcRegisterSubdevice\n");
|
DPRINT1("Registering subdevice via PcRegisterSubdevice\n");
|
||||||
Status = PcRegisterSubdevice(pDeviceObject, L"Uart", port);
|
Status = PcRegisterSubdevice(pDeviceObject, DeviceName, port);
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue