Kill most warnings in lib/DtTerm.
Mostly missing headers, explicit parentheses and new prototypes. Some Caveats: * I haven't compile-tested the SVR4 getpty file, it might need another tweak * There were operator precedence bugs in TermPrimCursor.c and TermPrimRender.c (^ vs. !=). This might change behaviour, but at least I haven't experienced any crashes ... * This adds a little more dependencies for include ordering, but unless we want to play the "headers that include headers that include headers..." game, this is unavoidable.
This commit is contained in:
committed by
Jon Trulson
parent
8f98ac92cd
commit
dc0e8ea74d
@@ -36,8 +36,12 @@ static char rcs_id[] = "$XConsortium: TermPrimCursor.c /main/1 1996/04/21 19:17:
|
||||
* (c) Copyright 1996 Hitachi. *
|
||||
*/
|
||||
|
||||
#include <Xm/ScrollBar.h>
|
||||
#include <Xm/XmPrivate.h>
|
||||
|
||||
#include "TermHeader.h"
|
||||
#include "TermPrimDebug.h"
|
||||
#include "TermPrimI.h"
|
||||
#include "TermPrimP.h"
|
||||
#include "TermPrimData.h"
|
||||
#include "TermPrimLineDraw.h"
|
||||
@@ -322,7 +326,7 @@ _DtTermPrimCursorOn(Widget w)
|
||||
}
|
||||
|
||||
/* set the GC... */
|
||||
if (tpd->cursorGC.foreground != enhInfo.fg ^ enhInfo.bg) {
|
||||
if (tpd->cursorGC.foreground != (enhInfo.fg ^ enhInfo.bg)) {
|
||||
tpd->cursorGC.foreground = enhInfo.fg ^ enhInfo.bg;
|
||||
values.foreground = enhInfo.fg ^ enhInfo.bg;
|
||||
valueMask |= GCForeground;
|
||||
|
||||
Reference in New Issue
Block a user