Skip to content

Commit 25e50dc

Browse files
jfsmigfvennetier
authored andcommitted
gridinit: Fix minor warnings with various gcc/clang versions
1 parent 3781879 commit 25e50dc

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

main/gridinit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4040
#define USERFLAG_PROCESS_RESTARTED 0x00000004
4141
#define UNUSED __attribute__ ((unused))
4242

43-
#define BOOL(i) ((i)!=0)
4443

4544
int main_log_level_default = 0x7F;
4645
int main_log_level = 0x7F;

main/gridinit_cmd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3333

3434
#define UNUSED __attribute__ ((unused))
3535

36-
#define MINI 0
37-
#define MEDIUM 1
38-
3936

4037
static gchar *sock_path = NULL;
4138
static gchar line[8192] = "";
4239
static gboolean flag_color = FALSE;
4340
static gchar *format = NULL;
4441
static gboolean flag_version = FALSE;
45-
#define BOOL(i) (i?1:0)
4642

4743
struct dump_as_is_arg_s {
4844
guint count_success;

main/gridinit_internals.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8080
# define CFG_KEY_INHERIT "inherit_env"
8181
#endif
8282

83+
#define BOOL(i) ((i)!=0)
84+
8385
gboolean gridinit_group_in_set(const gchar *group, const gchar *set);
8486

8587
#endif

0 commit comments

Comments
 (0)