It's very long, but the problem is in
task_fnc.c. The other files contains still many of workings, so skip layers_fnc etc.
-------------- Clean: Debug in jpeg-trubo_test (compiler: GNU GCC Compiler)---------------
Cleaned "jpeg-trubo_test - Debug"
-------------- Build: Debug in jpeg-trubo_test (compiler: GNU GCC Compiler)---------------
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\args.c -o obj\Debug\args.o
c:\t\args.c: In function 'parseArgs':
c:\t\args.c:53:11: warning: implicit declaration of function 'parseColorFile' [-Wimplicit-function-declaration]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\bmp_conversions.c -o obj\Debug\bmp_conversions.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\bmpfile.c -o obj\Debug\bmpfile.o
c:\t\bmpfile.c: In function 'bmp_save':
c:\t\bmpfile.c:971:10: warning: variable 'bytes_per_pixel' set but not used [-Wunused-but-set-variable]
c:\t\bmpfile.c: At top level:
c:\t\bmpfile.c:215:1: warning: 'bmp_create_grayscale_color_table' defined but not used [-Wunused-function]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\colors_fnc_1.c -o obj\Debug\colors_fnc_1.o
c:\t\colors_fnc_1.c: In function 'parseColorFile':
c:\t\colors_fnc_1.c:104:5: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:140:25: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:248:41: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:393:45: warning: implicit declaration of function 'comma2dot' [-Wimplicit-function-declaration]
c:\t\colors_fnc_1.c:393:52: warning: assignment makes pointer from integer without a cast [enabled by default]
c:\t\colors_fnc_1.c:398:52: warning: assignment makes pointer from integer without a cast [enabled by default]
c:\t\colors_fnc_1.c:383:39: warning: enumeration value 'no_attr_fc' not handled in switch [-Wswitch]
c:\t\colors_fnc_1.c:467:17: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:473:13: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:487:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
c:\t\colors_fnc_1.c:511:13: warning: passing argument 1 of 'abort_parseColorFile' from incompatible pointer type [enabled by default]
c:\t\colors_fnc_1.c:66:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct COLOR_FILE_t **'
c:\t\colors_fnc_1.c:120:40: warning: unused variable 'argTok' [-Wunused-variable]
c:\t\colors_fnc_1.c:118:16: warning: unused variable 'sarg' [-Wunused-variable]
c:\t\colors_fnc_1.c:99:29: warning: unused variable 'cid' [-Wunused-variable]
c:\t\colors_fnc_1.c:99:25: warning: variable 'rid' set but not used [-Wunused-but-set-variable]
c:\t\colors_fnc_1.c:99:20: warning: variable 'tmpi' set but not used [-Wunused-but-set-variable]
c:\t\colors_fnc_1.c:99:16: warning: variable 'arg' set but not used [-Wunused-but-set-variable]
c:\t\colors_fnc_1.c:85:45: warning: unused variable 'result' [-Wunused-variable]
c:\t\colors_fnc_1.c:84:49: warning: unused variable 'argLastToken' [-Wunused-variable]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\debug_fnc.c -o obj\Debug\debug_fnc.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\files.c -o obj\Debug\files.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\fnc.c -o obj\Debug\fnc.o
c:\t\fnc.c: In function 'printFile':
c:\t\fnc.c:519:3: warning: implicit declaration of function 'get_fsize' [-Wimplicit-function-declaration]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\get_fnc.c -o obj\Debug\get_fnc.o
c:\t\get_fnc.c: In function 'getAction_str':
c:\t\get_fnc.c:10:5: warning: excess elements in array initializer [enabled by default]
c:\t\get_fnc.c:10:5: warning: (near initialization for '(anonymous)') [enabled by default]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\jpeglib_conversion.c -o obj\Debug\jpeglib_conversion.o
c:\t\jpeglib_conversion.c: In function 'read_jpg_file':
c:\t\jpeglib_conversion.c:118:9: warning: statement with no effect [-Wunused-value]
c:\t\jpeglib_conversion.c: In function 'prepare_write_jpg_file':
c:\t\jpeglib_conversion.c:255:5: warning: passing argument 1 of 'jpeg_std_error' from incompatible pointer type [enabled by default]
In file included from c:\t\data_types.h:4:0,
from c:\t\jpeglib_conversion.h:4,
from c:\t\jpeglib_conversion.c:17:
c:\libjpeg-turbo\libjpeg-turbo-gcc\include/jpeglib.h:895:33: note: expected 'struct jpeg_error_mgr *' but argument is of type 'struct my_error_mgr *'
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\layers_fnc_1.c -o obj\Debug\layers_fnc_1.o
c:\t\layers_fnc_1.c: In function 'parseLayerFile':
c:\t\layers_fnc_1.c:97:3: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:184:21: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:194:21: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:238:13: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:299:33: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:305:33: warning: format '%d' expects a matching 'int' argument [-Wformat]
c:\t\layers_fnc_1.c:306:33: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:337:33: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:360:25: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:372:31: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:411:29: warning: passing argument 1 of 'test_lid_exists' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:4:6: note: expected 'struct LAYER_FILE_t *' but argument is of type 'struct NEW_LAYER_REQUEST_t **'
c:\t\layers_fnc_1.c:415:33: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:424:29: warning: passing argument 1 of 'test_lid_exists' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:4:6: note: expected 'struct LAYER_FILE_t *' but argument is of type 'struct NEW_LAYER_REQUEST_t **'
c:\t\layers_fnc_1.c:465:29: warning: passing argument 1 of 'test_lid_exists' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:4:6: note: expected 'struct LAYER_FILE_t *' but argument is of type 'struct NEW_LAYER_REQUEST_t **'
c:\t\layers_fnc_1.c:469:33: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:478:29: warning: statement with no effect [-Wunused-value]
c:\t\layers_fnc_1.c:503:37: warning: passing argument 1 of 'setAction' from incompatible pointer type [enabled by default]
In file included from c:\t\layers_fnc_1.h:5:0,
from c:\t\layers_fnc_1.c:1:
c:\t\fnc.h:22:10: note: expected 'struct LAYER_COMMAND_REFS_t *' but argument is of type 'struct WRAPPER_t *'
c:\t\layers_fnc_1.c:506:37: warning: passing argument 1 of 'setEffect' from incompatible pointer type [enabled by default]
In file included from c:\t\layers_fnc_1.h:5:0,
from c:\t\layers_fnc_1.c:1:
c:\t\fnc.h:21:10: note: expected 'struct LAYER_COMMAND_REFS_t *' but argument is of type 'struct WRAPPER_t *'
c:\t\layers_fnc_1.c:509:37: warning: passing argument 1 of 'setFilter' from incompatible pointer type [enabled by default]
In file included from c:\t\layers_fnc_1.h:5:0,
from c:\t\layers_fnc_1.c:1:
c:\t\fnc.h:20:10: note: expected 'struct LAYER_COMMAND_REFS_t *' but argument is of type 'struct WRAPPER_t *'
c:\t\layers_fnc_1.c:543:25: warning: passing argument 1 of 'test_lid_exists' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:4:6: note: expected 'struct LAYER_FILE_t *' but argument is of type 'struct NEW_LAYER_REQUEST_t **'
c:\t\layers_fnc_1.c:547:29: warning: passing argument 1 of 'abort_parseLayerFile' from incompatible pointer type [enabled by default]
c:\t\layers_fnc_1.c:46:6: note: expected 'struct WRAPPER_t *' but argument is of type 'struct LAYER_FILE_t **'
c:\t\layers_fnc_1.c:92:8: warning: variable 'HSV_default_buf' set but not used [-Wunused-but-set-variable]
c:\t\layers_fnc_1.c:91:8: warning: variable 'CMYK_default_buf' set but not used [-Wunused-but-set-variable]
c:\t\layers_fnc_1.c:78:12: warning: unused variable 'operation' [-Wunused-variable]
c:\t\layers_fnc_1.c:76:41: warning: variable 'operation_failed' set but not used [-Wunused-but-set-variable]
c:\t\layers_fnc_1.c:76:25: warning: variable 'square_bracket' set but not used [-Wunused-but-set-variable]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\main.c -o obj\Debug\main.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\png_conversions.c -o obj\Debug\png_conversions.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\png_fnc.c -o obj\Debug\png_fnc.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\strings_fnc.c -o obj\Debug\strings_fnc.o
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\task_fnc.c -o obj\Debug\
task_fnc.oc:\t\task_fnc.c: In function '
depthInStringExt':
c:\t\task_fnc.c:87:12: warning: unused variable 'zoom' [-Wunused-variable]
c:\t\task_fnc.c:86:12: warning: unused variable 'origin' [-Wunused-variable]
c:\t\task_fnc.c: In function 'parseTaskFile':
c:\t\task_fnc.c:334:9: warning: implicit declaration of function 'str2chrs' [-Wimplicit-function-declaration]
c:\t\task_fnc.c:334:14: warning: assignment makes pointer from integer without a cast [enabled by default]
c:\t\task_fnc.c:246:7: warning: unused variable 'table_counts' [-Wunused-variable]
mingw32-gcc.exe -Wall -g -Wunused-variable -Wunused-but-set-variable -Wunused-function -Ic:\libjpeg-turbo\libjpeg-turbo-gcc\include -Ic:\th\pthreads-w32-2-9-1\Pre-built.2\include -Ic:\timer\refu -Ic:\timer\refu\Time\ -Ic:\t\jpeg-trubo_test -Ic:\imglib\libpng\libpng1237\include -Ic:\imglib\zlib128-dll\include -Ic:\c\SDL-1.2.15-lib-MiGW32\include\SDL -c c:\t\thread_fnc.c -o obj\Debug\thread_fnc.o
mingw32-g++.exe -Lc:\th\pthread-win\x86 -Lc:\timer\refu -Lc:\c\SDL-2.0.3-lib-MinGW\lib -Lc:\c\SDL-2.0.3-lib-MinGW\lib\x86 -o bin\Debug\t.exe obj\Debug\args.o obj\Debug\bmp_conversions.o obj\Debug\bmpfile.o obj\Debug\colors_fnc_1.o obj\Debug\debug_fnc.o obj\Debug\files.o obj\Debug\fnc.o obj\Debug\get_fnc.o obj\Debug\jpeglib_conversion.o obj\Debug\layers_fnc_1.o obj\Debug\main.o obj\Debug\png_conversions.o obj\Debug\png_fnc.o obj\Debug\strings_fnc.o obj\Debug\task_fnc.o obj\Debug\thread_fnc.o c:\libjpeg-turbo\libjpeg-turbo-gcc\lib\libturbojpeg.dll.a c:\libjpeg-turbo\libjpeg-turbo-gcc\lib\libjpeg.dll.a c:\th\pthreads-w32-2-9-1\Pre-built.2\lib\libpthreadGC2.a c:\timer\refu\refu.dll c:\imglib\libpng\libpng1237\bin\libpng3.dll c:\imglib\libpng\libpng1237\bin\libpng12.dll c:\t\libpng3.dll c:\t\libpng12.dll
Output file is bin\Debug\t.exe with size 305.39 KB
Process terminated with status 0 (0 minute(s), 4 second(s))
0 error(s), 58 warning(s) (0 minute(s), 4 second(s))
The warnings you see I was not able to fix till now.
I see only the -g options enabled, where to find what I should enable?
I have no experiences with optimization.