1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-18 15:35:55 +01:00

WINGs: Make the test examples to compile

Those examples are optional but currently cannot compile properly.
The compiler is reporting some unused variables and missing header file.
This commit is contained in:
David Maciejak
2023-03-07 17:24:41 +00:00
committed by Carlos R. Mafra
parent 3b1c00ad06
commit 6c69dc32a0
6 changed files with 24 additions and 16 deletions

View File

@@ -11,14 +11,14 @@
#include "logo.xpm"
void wAbort()
_Noreturn void wAbort(void)
{
exit(1);
exit(1);
}
char *ProgName;
void usage(void)
_Noreturn void usage(void)
{
fprintf(stderr,
"usage:\n"
@@ -45,8 +45,6 @@ int main(int argc, char **argv)
char *initial = NULL;
char *result = NULL;
int ch;
extern char *optarg;
extern int optind;
WMInitializeApplication("WMQuery", &argc, argv);