mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-24 03:38:39 +02:00
sch2fig/Makefile (CFLAGS), sch.c: add -O; suppress asprintf warning
This commit is contained in:
parent
b8ec957471
commit
4427d092ef
@ -13,7 +13,7 @@
|
|||||||
NAME = sch2fig
|
NAME = sch2fig
|
||||||
OBJS = main.o sch.o lib.o fig.o dwg.o text.o misc.o
|
OBJS = main.o sch.o lib.o fig.o dwg.o text.o misc.o
|
||||||
|
|
||||||
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow
|
CFLAGS = -g -O -Wall -Wextra -Wno-unused-parameter -Wshadow
|
||||||
LIBS = -lm
|
LIBS = -lm
|
||||||
|
|
||||||
include ../common/Makefile.c-common
|
include ../common/Makefile.c-common
|
||||||
|
@ -362,7 +362,7 @@ static void do_hsheet_text(struct sch_ctx *ctx)
|
|||||||
.hor = text_min,
|
.hor = text_min,
|
||||||
.vert = text_min,
|
.vert = text_min,
|
||||||
};
|
};
|
||||||
asprintf(&s, "Sheet: %s", ctx->sheet);
|
if (asprintf(&s, "Sheet: %s", ctx->sheet)) {}
|
||||||
sheet_txt.s = s; /* work around "const" mismatch */
|
sheet_txt.s = s; /* work around "const" mismatch */
|
||||||
|
|
||||||
struct text file_txt = {
|
struct text file_txt = {
|
||||||
@ -373,7 +373,7 @@ static void do_hsheet_text(struct sch_ctx *ctx)
|
|||||||
.hor = text_min,
|
.hor = text_min,
|
||||||
.vert = text_max,
|
.vert = text_max,
|
||||||
};
|
};
|
||||||
asprintf(&s, "File: %s", ctx->file);
|
if (asprintf(&s, "File: %s", ctx->file)) {}
|
||||||
file_txt.s = s; /* work around "const" mismatch */
|
file_txt.s = s; /* work around "const" mismatch */
|
||||||
|
|
||||||
if (ctx->rotated) {
|
if (ctx->rotated) {
|
||||||
|
Loading…
Reference in New Issue
Block a user