summaryrefslogtreecommitdiff
path: root/viewres.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-09Add -help and -version optionsHEADmasterAlan Coopersmith1-3/+25
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09Print which argument was unknown before giving usage messageAlan Coopersmith1-1/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-10set_node_labels: move dereference of node to after the NULL checkAlan Coopersmith1-1/+2
Found by cppcheck: viewres.c:815:22: warning: Either the condition '!node' is redundant or there is possible null pointer dereference: node. [nullPointerRedundantCheck] ViewresData *d = VData(node); ^ viewres.c:817:9: note: Assuming that condition '!node' is not redundant if (!node) ^ viewres.c:815:22: note: Null pointer dereference ViewresData *d = VData(node); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Variable scope reductions as suggested by cppcheckAlan Coopersmith1-21/+11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Remove obsolete casts on calloc & malloc callsAlan Coopersmith1-4/+2
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Apply X.Org standard coding styleAlan Coopersmith1-592/+621
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-08Fix -Wshadow warningsAlan Coopersmith1-7/+7
viewres.c: In function ‘select_callback’: viewres.c:620:18: warning: declaration of ‘node’ shadows a previous local [-Wshadow] XmuWidgetNode *node = selected_list.elements[i]; ^~~~ viewres.c:593:20: note: shadowed declaration is here XmuWidgetNode *node; ^~~~ viewres.c:658:18: warning: declaration of ‘node’ shadows a previous local [-Wshadow] XmuWidgetNode *node = selected_list.elements[i]; ^~~~ viewres.c:593:20: note: shadowed declaration is here XmuWidgetNode *node; ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-08Fix -Wsign-compare warningsAlan Coopersmith1-1/+1
viewres.c: In function ‘set_resource_labels’: viewres.c:313:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < node->nresources; i++, res++, wn++) { ^ viewres.c:329:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < node->nconstraints; i++, res++, wn++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-08Pass -D_CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith1-1/+1
Clears up 32 of 38 gcc -Wdiscarded-qualifiers warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-19Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade1-3/+5
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
2004-04-23Merging XORG-CURRENT into trunksco_port_update-baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1XORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGEXORG-6_8-branchEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330Kaleb Keithley1-122/+101
2003-11-14Initial revisionXORG-STABLEKaleb Keithley1-0/+1227