Resolve many build warnings
This patch fixes many warnings from the beginning of the build up to and including the depend stage. Nearly all warnings should be gone even with -Wall.
This commit is contained in:
committed by
Jon Trulson
parent
2bf29e5d63
commit
42e891d9e7
@@ -475,7 +475,7 @@ IcccmAgent::convert_handler(Widget w, Atom selection, Atom target,
|
||||
unsigned long xmu_length;
|
||||
|
||||
XmuConvertStandardSelection(w, req->time, &selection, &target, &type_return,
|
||||
(caddr_t*)&xmu_targets, &xmu_length,
|
||||
(caddr_t*)(void*)&xmu_targets, &xmu_length,
|
||||
&format_return);
|
||||
assert( type_return == XA_ATOM );
|
||||
assert( format_return == sizeof(Atom) * 8 );
|
||||
|
||||
@@ -3041,7 +3041,7 @@ NodeWindowAgent::make_bookmark (Boolean edit, MarkCanvas* refmark)
|
||||
{
|
||||
char *name;
|
||||
_DtCanvasGetSelection(f_help_dsp_area->canvas,
|
||||
_DtCvSELECTED_TEXT, ((_DtCvPointer *)&name));
|
||||
_DtCvSELECTED_TEXT, ((_DtCvPointer *)(void*)&name));
|
||||
|
||||
#ifdef BOOKMARK_DEBUG
|
||||
cerr << "Bookmark Name: [" << name << "]" << endl;
|
||||
|
||||
@@ -850,7 +850,7 @@ locale_of_desktop()
|
||||
1L, 1L, False,
|
||||
_DT_SM_WINDOW_INFO,
|
||||
&type, &format, &nitems, &after,
|
||||
(unsigned char **)&sm_prop_window) ;
|
||||
(unsigned char **)(void*)&sm_prop_window) ;
|
||||
|
||||
#ifdef DEBUG
|
||||
// property.smWindow = (unsigned long) smGD.topLevelWindow;
|
||||
@@ -870,7 +870,7 @@ locale_of_desktop()
|
||||
0L, (long)8, False,
|
||||
XA_STRING,
|
||||
&type, &format, &nitems, &after,
|
||||
(unsigned char **)&dt_locale) ;
|
||||
(unsigned char **)(void*)&dt_locale) ;
|
||||
|
||||
#ifdef DEBUG
|
||||
printf( "desktop's locale is %s\n", dt_locale ) ;
|
||||
|
||||
@@ -45,29 +45,30 @@ EXTRA_INCLUDES=-I/X11/include
|
||||
OBJS1= cgmcmds.o \
|
||||
cgmcommon.o \
|
||||
cgmio.o \
|
||||
cgmtext.o \
|
||||
getcgm.o
|
||||
cgmtext.o
|
||||
|
||||
SRCS1= cgmcmds.c \
|
||||
cgmcommon.c \
|
||||
cgmio.c \
|
||||
cgmtext.c \
|
||||
getcgm.c
|
||||
cgmtext.c
|
||||
|
||||
SRCS2= getcgm.c
|
||||
OBJS2= getcgm.o
|
||||
|
||||
|
||||
NormalCplusplusObjectRule()
|
||||
NormalLibraryObjectRule()
|
||||
NormalLibraryTarget(cgm, $(OBJS1))
|
||||
NormalLibraryTarget2(cgm, $(OBJS1), $(OBJS2))
|
||||
|
||||
|
||||
AllTarget($(PROGRAMS))
|
||||
|
||||
SRCS2 = testcgm.c
|
||||
OBJS2 = testcgm.o
|
||||
SRCS3 = testcgm.c
|
||||
OBJS3 = testcgm.o
|
||||
|
||||
ComplexProgramTarget_2($(PROGRAMS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))
|
||||
ComplexProgramTarget_3($(PROGRAMS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES))
|
||||
|
||||
DependTarget3($(SRCS1),$(SRCS2),NullParameter)
|
||||
DependTarget3($(SRCS1),$(SRCS2),$(SRCS3))
|
||||
|
||||
clean::
|
||||
RemoveFiles($(PROGRAMS))
|
||||
|
||||
Reference in New Issue
Block a user