As pointed by gcc, a few constants which contain sizes for buffers are not
used anywhere in the code. This is probably due to code cleanup, where
these buffers have been removed or where size is automatically calculated
by using 'sizeof' instead to reduce risk of bugs.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 WINGs/wcolorpanel.c | 3 ---
 WINGs/wfontpanel.c  | 2 --
 WPrefs.app/Menu.c   | 1 -
 src/workspace.c     | 1 -
 4 files changed, 7 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index 9cb004e..12d5448 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -264,9 +264,6 @@ enum {
 
 #define        COLORWHEEL_PART         1
 #define        CUSTOMPALETTE_PART      2
-#define        BUFSIZE                 1024
-
-#define MAX_LENGTH              1024
 
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
diff --git a/WINGs/wfontpanel.c b/WINGs/wfontpanel.c
index aede6dd..2d6f77f 100644
--- a/WINGs/wfontpanel.c
+++ b/WINGs/wfontpanel.c
@@ -43,8 +43,6 @@ typedef struct W_FontPanel {
 #define MIN_UPPER_HEIGHT       20
 #define MIN_LOWER_HEIGHT       140
 
-#define MAX_FONTS_TO_RETRIEVE  2000
-
 #define BUTTON_SPACE_HEIGHT 40
 
 #define MIN_WIDTH      250
diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c
index db5b6c1..5f0f017 100644
--- a/WPrefs.app/Menu.c
+++ b/WPrefs.app/Menu.c
@@ -42,7 +42,6 @@ typedef enum {
 } InfoType;
 
 #define MAX_SECTION_SIZE 4
-#define PATH_LEN 256
 
 typedef struct _Panel {
        WMBox *box;
diff --git a/src/workspace.c b/src/workspace.c
index 9a82057..380ffec 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -57,7 +57,6 @@
 /* index of the first workspace menu entry */
 #define MC_WORKSPACE1   3
 
-#define MAX_SHORTCUT_LENGTH 32
 #define WORKSPACE_NAME_DISPLAY_PADDING 32
 
 static WMPropList *dWorkspaces = NULL;
-- 
2.1.3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to