mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-08 14:54:13 +01:00
WPrefs: Added noreturn attribute to appropriate functions
clang is a bit more strict on the attribute usage, so let's comply. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
f8b6871371
commit
04f50a0833
@@ -19,9 +19,15 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "WPrefs.h"
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef HAVE_STDNORETURN
|
||||
#include <stdnoreturn.h>
|
||||
#endif
|
||||
|
||||
|
||||
#define ICON_TITLE_FONT "sans serif:pixelsize=9"
|
||||
#define ICON_TITLE_VFONT "sans serif:pixelsize=9:weight=100"
|
||||
@@ -70,7 +76,7 @@ static void savePanelData(Panel * panel);
|
||||
|
||||
static void prepareForClose(void);
|
||||
|
||||
static void quit(WMWidget *w, void *data)
|
||||
static noreturn void quit(WMWidget *w, void *data)
|
||||
{
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
Reference in New Issue
Block a user