1 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. rm -f dwm drw.o dwm.o util.o dwm-6.3.tar.gz
  2. dwm build options:
  3. CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION="6.3" -DXINERAMA
  4. LDFLAGS = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lXrender
  5. CC = cc
  6. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.3\" -DXINERAMA drw.c
  7. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.3\" -DXINERAMA dwm.c
  8. In file included from dwm.c:333:
  9. config.h:26:9: warning: braces around scalar initializer
  10. 26 | [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  11. | ^
  12. config.h:26:9: note: (near initialization for ‘alphas[0]’)
  13. dwm.c:61:33: warning: initialization of ‘unsigned int *’ from ‘unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
  14. 61 | #define OPAQUE 0xffU
  15. | ^~~~~
  16. config.h:26:26: note: in expansion of macro ‘OPAQUE’
  17. 26 | [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  18. | ^~~~~~
  19. dwm.c:61:33: note: (near initialization for ‘alphas[0]’)
  20. 61 | #define OPAQUE 0xffU
  21. | ^~~~~
  22. config.h:26:26: note: in expansion of macro ‘OPAQUE’
  23. 26 | [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  24. | ^~~~~~
  25. In file included from dwm.c:333:
  26. config.h:26:34: warning: excess elements in scalar initializer
  27. 26 | [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  28. | ^~~~~~~~
  29. config.h:26:34: note: (near initialization for ‘alphas[0]’)
  30. config.h:26:44: warning: excess elements in scalar initializer
  31. 26 | [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  32. | ^~~~~~~~~~~
  33. config.h:26:44: note: (near initialization for ‘alphas[0]’)
  34. config.h:27:9: warning: braces around scalar initializer
  35. 27 | [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  36. | ^
  37. config.h:27:9: note: (near initialization for ‘alphas[1]’)
  38. dwm.c:61:33: warning: initialization of ‘unsigned int *’ from ‘unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
  39. 61 | #define OPAQUE 0xffU
  40. | ^~~~~
  41. config.h:27:26: note: in expansion of macro ‘OPAQUE’
  42. 27 | [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  43. | ^~~~~~
  44. dwm.c:61:33: note: (near initialization for ‘alphas[1]’)
  45. 61 | #define OPAQUE 0xffU
  46. | ^~~~~
  47. config.h:27:26: note: in expansion of macro ‘OPAQUE’
  48. 27 | [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  49. | ^~~~~~
  50. In file included from dwm.c:333:
  51. config.h:27:34: warning: excess elements in scalar initializer
  52. 27 | [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  53. | ^~~~~~~~
  54. config.h:27:34: note: (near initialization for ‘alphas[1]’)
  55. config.h:27:44: warning: excess elements in scalar initializer
  56. 27 | [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  57. | ^~~~~~~~~~~
  58. config.h:27:44: note: (near initialization for ‘alphas[1]’)
  59. dwm.c: In function ‘setup’:
  60. dwm.c:1774:55: warning: passing argument 2 of ‘drw_scm_create’ from incompatible pointer type [-Wincompatible-pointer-types]
  61. 1774 | scheme[i] = drw_scm_create(drw, colors[i], alphas[i], 3);
  62. | ~~~~~~^~~
  63. | |
  64. | char **
  65. In file included from dwm.c:45:
  66. drw.h:45:43: note: expected ‘const char **’ but argument is of type ‘char **’
  67. 45 | Clr *drw_scm_create(Drw *drw, const char *clrnames[], const unsigned int alphas[], size_t clrcount);
  68. | ~~~~~~~~~~~~^~~~~~~~~~
  69. In function ‘setup’,
  70. inlined from ‘main’ at dwm.c:2820:2:
  71. dwm.c:1774:29: warning: ‘drw_scm_create’ reading 4 bytes from a region of size 0 [-Wstringop-overread]
  72. 1774 | scheme[i] = drw_scm_create(drw, colors[i], alphas[i], 3);
  73. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. dwm.c: In function ‘main’:
  75. dwm.c:1774:29: note: referencing argument 3 of type ‘const unsigned int *’
  76. In file included from dwm.c:45:
  77. drw.h:45:6: note: in a call to function ‘drw_scm_create’
  78. 45 | Clr *drw_scm_create(Drw *drw, const char *clrnames[], const unsigned int alphas[], size_t clrcount);
  79. | ^~~~~~~~~~~~~~
  80. In function ‘setup’,
  81. inlined from ‘main’ at dwm.c:2820:2:
  82. dwm.c:1774:29: warning: ‘drw_scm_create’ reading 4 bytes from a region of size 0 [-Wstringop-overread]
  83. 1774 | scheme[i] = drw_scm_create(drw, colors[i], alphas[i], 3);
  84. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  85. dwm.c: In function ‘main’:
  86. dwm.c:1774:29: note: referencing argument 3 of type ‘const unsigned int *’
  87. In file included from dwm.c:45:
  88. drw.h:45:6: note: in a call to function ‘drw_scm_create’
  89. 45 | Clr *drw_scm_create(Drw *drw, const char *clrnames[], const unsigned int alphas[], size_t clrcount);
  90. | ^~~~~~~~~~~~~~
  91. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"6.3\" -DXINERAMA util.c
  92. cc -o dwm drw.o dwm.o util.o -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lXrender
  93. mkdir -p /usr/local/bin
  94. cp -f dwm /usr/local/bin
  95. chmod 755 /usr/local/bin/dwm
  96. cp -f dwmswallow /usr/local/bin
  97. chmod 755 /usr/local/bin/dwmswallow
  98. mkdir -p /usr/local/share/man/man1
  99. sed "s/VERSION/6.3/g" < dwm.1 > /usr/local/share/man/man1/dwm.1
  100. chmod 644 /usr/local/share/man/man1/dwm.1