Skip to content

Commit

Permalink
Merge pull request #18 from mariux64/use-more-effective-compile-flags
Browse files Browse the repository at this point in the history
Use more effective compile flags
  • Loading branch information
donald authored Feb 7, 2019
2 parents 5ade3f7 + b5fda28 commit 28a1229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 28a1229

Please sign in to comment.