mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 00:12:31 +01:00
Address unprototyped call in dock.c
Create a header file dockedapp.h to address a long-standing warning which pollutes the compilation output with --enable-silent-rules: Making all in src CC dock.o dock.c: In function ‘wDockDetach’: dock.c:2118:3: warning: call to function ‘DestroyDockAppSettingsPanel’ without a real prototype [-Wunprototyped-calls] dock.c:65:13: note: ‘DestroyDockAppSettingsPanel’ was declared here CCLD wmaker
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "icon.h"
|
||||
#include "appicon.h"
|
||||
#include "dock.h"
|
||||
#include "dockedapp.h"
|
||||
#include "dialog.h"
|
||||
#include "funcs.h"
|
||||
#include "defaults.h"
|
||||
@@ -40,45 +41,6 @@
|
||||
/**** Global variables ****/
|
||||
extern WPreferences wPreferences;
|
||||
|
||||
typedef struct _AppSettingsPanel {
|
||||
WMWindow *win;
|
||||
WAppIcon *editedIcon;
|
||||
|
||||
WWindow *wwin;
|
||||
|
||||
WMLabel *iconLabel;
|
||||
WMLabel *nameLabel;
|
||||
|
||||
WMFrame *commandFrame;
|
||||
WMTextField *commandField;
|
||||
|
||||
WMFrame *dndCommandFrame;
|
||||
WMTextField *dndCommandField;
|
||||
WMLabel *dndCommandLabel;
|
||||
|
||||
WMFrame *pasteCommandFrame;
|
||||
WMTextField *pasteCommandField;
|
||||
WMLabel *pasteCommandLabel;
|
||||
|
||||
WMFrame *iconFrame;
|
||||
WMTextField *iconField;
|
||||
WMButton *browseBtn;
|
||||
|
||||
WMButton *autoLaunchBtn;
|
||||
WMButton *lockBtn;
|
||||
|
||||
WMButton *okBtn;
|
||||
WMButton *cancelBtn;
|
||||
|
||||
Window parent;
|
||||
|
||||
/* kluge */
|
||||
unsigned int destroyed:1;
|
||||
unsigned int choosingIcon:1;
|
||||
} AppSettingsPanel;
|
||||
|
||||
void DestroyDockAppSettingsPanel(AppSettingsPanel * panel);
|
||||
|
||||
static void updateCommand(WAppIcon * icon, char *command)
|
||||
{
|
||||
if (icon->command)
|
||||
|
||||
Reference in New Issue
Block a user