Skip to content

Commit

Permalink
Removed compilation warning when compiling fluid/file.cxx on apple.
Browse files Browse the repository at this point in the history
Also, added explanatory comment of the purpose of a GNUC-specific
attribute in FL/fl_ask.H

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 20, 2014
1 parent a60e540 commit 09230a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions FL/fl_ask.H
Expand Up @@ -39,6 +39,8 @@ enum Fl_Beep {
};

# ifdef __GNUC__
/* the GNUC-specific attribute appearing below in prototypes with a variable list of arguments
helps detection of mismatches between format string and argument list at compilation time */
# define __fl_attr(x) __attribute__ (x)
# else
# define __fl_attr(x)
Expand Down
5 changes: 2 additions & 3 deletions fluid/file.cxx
Expand Up @@ -26,6 +26,8 @@
#include "../src/flstring.h"
#include <stdarg.h>
#include "alignment_panel.h"
#include <FL/Fl.H>
#include "Fl_Widget_Type.h"

////////////////////////////////////////////////////////////////
// BASIC FILE WRITING:
Expand Down Expand Up @@ -292,9 +294,6 @@ const char *read_word(int wantbrace) {

////////////////////////////////////////////////////////////////

#include <FL/Fl.H>
#include "Fl_Widget_Type.h"

// global int variables:
extern int i18n_type;
extern const char* i18n_include;
Expand Down

0 comments on commit 09230a9

Please sign in to comment.