surveiller les warnings du gcc
This commit is contained in:
parent
af7266eb30
commit
3f7abf4ea0
2
Makefile
2
Makefile
@ -3,7 +3,7 @@
|
|||||||
# a look to the 'build.sh' script ! #
|
# a look to the 'build.sh' script ! #
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
COPT = -Wall -fpic -g -pg -no-pie -DDEBUG_LEVEL=0
|
COPT = -Wall -Wextra -fpic -g -pg -no-pie -DDEBUG_LEVEL=0
|
||||||
LDOPT = libfloatimg.a -pg -lm
|
LDOPT = libfloatimg.a -pg -lm
|
||||||
|
|
||||||
all: essai
|
all: essai
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# some ugly experiments, do not use in production
|
# some ugly experiments, do not use in production
|
||||||
#
|
#
|
||||||
|
|
||||||
COPT = -Wall -fpic -g -DDEBUG_LEVEL=1 -lm
|
COPT = -Wall -Wextra -fpic -g -DDEBUG_LEVEL=1 -lm
|
||||||
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
||||||
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio -lm
|
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio -lm
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
int verbosity;
|
int verbosity;
|
||||||
|
|
||||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
/* --------------------------------------------------------------- */
|
||||||
|
|
||||||
int triplane_muxer(FloatImg *sr, FloatImg *sg, FloatImg *sb,
|
int triplane_muxer(FloatImg *sr, FloatImg *sg, FloatImg *sb,
|
||||||
FloatImg *dst, int flages)
|
FloatImg *dst, int flages)
|
||||||
@ -40,7 +40,7 @@ memcpy(dst->B, sb->B, sz);
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
/* --------------------------------------------------------------- */
|
||||||
int try_this_muxplane(char *fr, char *fg, char *fb, char *dst, int flags)
|
int try_this_muxplane(char *fr, char *fg, char *fb, char *dst, int flags)
|
||||||
{
|
{
|
||||||
int foo;
|
int foo;
|
||||||
@ -72,14 +72,18 @@ if (foo) {
|
|||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
fimg_export_picture(&dest, dst, 0);
|
foo = fimg_export_picture(&dest, dst, 0);
|
||||||
|
if (foo) {
|
||||||
|
fprintf(stderr, "%s: err %d exporting to %s\n", __func__, foo, dst);
|
||||||
|
return foo;
|
||||||
|
}
|
||||||
|
|
||||||
fimg_destroy(&imr); fimg_destroy(&img);
|
fimg_destroy(&imr); fimg_destroy(&img);
|
||||||
fimg_destroy(&imr); fimg_destroy(&dest);
|
fimg_destroy(&imb); fimg_destroy(&dest);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
/* --------------------------------------------------------------- */
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int foo;
|
int foo;
|
||||||
@ -90,6 +94,11 @@ if (5 != argc) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* and now, we have to decipher options on the
|
||||||
|
* command line.
|
||||||
|
*/
|
||||||
|
|
||||||
foo = try_this_muxplane(argv[1], argv[2], argv[3], argv[4], 0);
|
foo = try_this_muxplane(argv[1], argv[2], argv[3], argv[4], 0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "oups %d\n", foo);
|
fprintf(stderr, "oups %d\n", foo);
|
||||||
@ -98,4 +107,4 @@ if (foo) {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* ---------------------------------------------- ~~~~~~~~~~~~~~~~ */
|
/* --------------------------------------------------------------- */
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Please, use the 'Gloabl.makefile' system !
|
# Please, use the 'Gloabl.makefile' system !
|
||||||
|
|
||||||
|
|
||||||
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
COPT = -Wall -Wextra -fpic -g -no-pie -DDEBUG_LEVEL=0
|
||||||
DEPS = ../floatimg.h Makefile
|
DEPS = ../floatimg.h Makefile
|
||||||
|
|
||||||
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# building the base library
|
# building the base library
|
||||||
#
|
#
|
||||||
|
|
||||||
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
COPT = -Wall -Wextra -fpic -g -no-pie -DDEBUG_LEVEL=0
|
||||||
|
|
||||||
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
|
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
|
||||||
fimg-timers.o operators.o fimg-2gray.o \
|
fimg-timers.o operators.o fimg-2gray.o \
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# PLEASE ! update to the 'Global.makefile' concept !
|
# PLEASE ! update to the 'Global.makefile' concept !
|
||||||
#
|
#
|
||||||
|
|
||||||
COPT = -Wall -fpic -g -DDEBUG_LEVEL=0
|
COPT = -Wall -Wextra -fpic -g -DDEBUG_LEVEL=0
|
||||||
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
Loading…
Reference in New Issue
Block a user