Skip to content

Use more effective compile flags #18

Merged
merged 2 commits into from
Feb 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#

CFLAGS= -Wall -Werror -Wextra -pedantic \
-std=gnu99
-std=gnu99 -O2 -g

LDFLAGS=-lm -lXaw -lXt -lX11
# gcc -o xdu -O2 -fno-strength-reduce -fno-strict-aliasing -L/usr/lib64 xdu.o xwin.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11
Expand Down
4 changes: 2 additions & 2 deletions xdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ void savepschildren(FILE* fp, struct node* nodep, struct rect rect, int showsize
height,
top;
struct node* np;
char *name,
char *name="n/a",
label[1024];
struct rect subrect;

Expand Down Expand Up @@ -1148,7 +1148,7 @@ void fprintsvgnode(FILE* fp, struct rect rect)
void fprintsvgnodetext(FILE* fp, int x, int y, long long size, char* name, int showsize)
{
char buffer[1024],
*text;
*text="n/a";

switch (showsize) {
case 0:
Expand Down