Skip to content

Commit d8ae7fe

Browse files
committed
Fix compile warnings
``` [1/2] Compiling C object src/nip4.p/dump.c.o ../src/dump.c:278:2: warning: #warning "DEBUG on in dump.c" [-Wcpp] 278 | #warning "DEBUG on in dump.c" | ^~~~~~~ [2/2] Compiling C object src/nip4.p/view.c.o ../src/view.c:43:2: warning: #warning "DEBUG_LEAK is on in view.c" [-Wcpp] 43 | #warning "DEBUG_LEAK is on in view.c" | ^~~~~~~ ```
1 parent 2ff8de8 commit d8ae7fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/dump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/* A lot of this file is just for debugging. Uncomment to enable all the
3333
* debugging code.
3434
*/
35+
/*
3536
#define DEBUG
37+
*/
3638

3739
/* Dump a binary operator.
3840
*/

src/view.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
/*
2525
#define DEBUG_VIEWCHILD
2626
#define DEBUG
27-
*/
2827
#define DEBUG_LEAK
28+
*/
2929

3030
/* Time each refresh
3131
#define DEBUG_TIME
@@ -44,10 +44,10 @@ static GSList *view_resettable = NULL;
4444
static GSList *all_view_widgets = NULL;
4545
#endif /*DEBUG_LEAK*/
4646

47-
#ifdef DEBUG_LEAK
4847
void
4948
view_dump(void)
5049
{
50+
#ifdef DEBUG_LEAK
5151
if (all_view_widgets) {
5252
printf("view_dump(): %d views\n", g_slist_length(all_view_widgets));
5353

@@ -63,8 +63,8 @@ view_dump(void)
6363
printf("\n");
6464
}
6565
}
66-
}
6766
#endif /*DEBUG_LEAK*/
67+
}
6868

6969
void
7070
view_scannable_register(View *view)

0 commit comments

Comments
 (0)