diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-11 12:11:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-17 08:33:11 -0700 |
commit | 05987580ba303f6d25830bb45ce00229cb8118cc (patch) | |
tree | a764bea7acf35cf06a4e5fe2cb99e1e0df7c2193 | |
parent | 770fc7881a48b8d81c9b04d99d29059033234af6 (diff) |
Fix -Wsign-compare warnings
xditview.c: In function ‘main’:
xditview.c:196:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < XtNumber (popupMenuEntries); i++) {
^
xditview.c:211:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < XtNumber (fileMenuEntries); i++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xditview.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,7 +193,7 @@ main(int argc, char **argv) */ popupMenu = XtCreatePopupShell ("popupMenu", simpleMenuWidgetClass, toplevel, NULL, 0); - for (int i = 0; i < XtNumber (popupMenuEntries); i++) { + for (Cardinal i = 0; i < XtNumber (popupMenuEntries); i++) { entry = XtCreateManagedWidget(popupMenuEntries[i].name, smeBSBObjectClass, popupMenu, NULL, (Cardinal) 0); @@ -208,7 +208,7 @@ main(int argc, char **argv) menuBar, NULL, (Cardinal) 0); fileMenu = XtCreatePopupShell ("fileMenu", simpleMenuWidgetClass, fileMenuButton, NULL, (Cardinal) 0); - for (int i = 0; i < XtNumber (fileMenuEntries); i++) { + for (Cardinal i = 0; i < XtNumber (fileMenuEntries); i++) { entry = XtCreateManagedWidget(fileMenuEntries[i].name, smeBSBObjectClass, fileMenu, NULL, (Cardinal) 0); |