INFO: No output directory specified (--dir) INFO: Using directory: "Single_crystal_validation_20241011_190818" INFO: Regenerating c-file: Single_crystal_validation.c DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/mcstas -t -o ./Single_crystal_validation.c Single_crystal_validation.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL WARNING: The parameter mosaic_AB of Single_crystal_test_process is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. WARNING: The parameter mosaic_AB of sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component test_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample -> GPU kernel from component sample ----------------------------------------------------------- DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/mcstas finished INFO: Recompiling: ./Single_crystal_validation.out DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/arm64-apple-darwin20.0.0-clang -o ./Single_crystal_validation.out ./Single_crystal_validation.c -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/peterwillendrup/miniforge3/lib -L/Users/peterwillendrup/miniforge3/lib -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/peterwillendrup/miniforge3/include -headerpad_max_install_names -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/peterwillendrup/miniforge3/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/mcstas-suite_1727875387353/work=/usr/local/src/conda/mcstas-core-3.5.2 -fdebug-prefix-map=/Users/peterwillendrup/miniforge3=/usr/local/src/conda-prefix -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -D_DARWIN_C_SOURCE -I/Users/peterwillendrup/miniforge3/include -Wl,-rpath,/Users/peterwillendrup/miniforge3/lib -L/Users/peterwillendrup/miniforge3/lib -fno-PIC -fPIE -flto -O3 -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm -DFUNNEL ./Single_crystal_validation.c:19124:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 19124 | }; | ^ ./Single_crystal_validation.c:20429:38: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 20429 | if(!ext || ext == infile) return infile; | ^~~~~~ ./Single_crystal_validation.c:20438:41: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 20438 | && strcasecmp(ext, "res")) return infile; | ^~~~~~ ./Single_crystal_validation.c:20441:26: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 20441 | if (!OUTFILE) return infile; | ^~~~~~ ./Single_crystal_validation.c:31121:54: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 31121 | if ((( _instrument_var._parameters.comp_select == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Single_crystal_validation.c:31121:54: note: remove extraneous parentheses around the comparison to silence this warning 31121 | if ((( _instrument_var._parameters.comp_select == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Single_crystal_validation.c:31121:54: note: use '=' to turn this equality comparison into an assignment 31121 | if ((( _instrument_var._parameters.comp_select == 1 ))) // conditional WHEN execution | ^~ | = ./Single_crystal_validation.c:31143:54: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 31143 | if ((( _instrument_var._parameters.comp_select == 2 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Single_crystal_validation.c:31143:54: note: remove extraneous parentheses around the comparison to silence this warning 31143 | if ((( _instrument_var._parameters.comp_select == 2 ))) // conditional WHEN execution | ~ ^ ~ ./Single_crystal_validation.c:31143:54: note: use '=' to turn this equality comparison into an assignment 31143 | if ((( _instrument_var._parameters.comp_select == 2 ))) // conditional WHEN execution | ^~ | = ./Single_crystal_validation.c:31165:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 31165 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~^~~~ ./Single_crystal_validation.c:31165:35: note: remove extraneous parentheses around the comparison to silence this warning 31165 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Single_crystal_validation.c:31165:35: note: use '=' to turn this equality comparison into an assignment 31165 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ^~ | = ./Single_crystal_validation.c:31208:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 31208 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~^~~~ ./Single_crystal_validation.c:31208:35: note: remove extraneous parentheses around the comparison to silence this warning 31208 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Single_crystal_validation.c:31208:35: note: use '=' to turn this equality comparison into an assignment 31208 | if ((( scattered_flag_instr == 1 ))) // conditional WHEN execution | ^~ | = ./Single_crystal_validation.c:31230:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 31230 | if ((( scattered_flag_instr == 0 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~^~~~ ./Single_crystal_validation.c:31230:35: note: remove extraneous parentheses around the comparison to silence this warning 31230 | if ((( scattered_flag_instr == 0 ))) // conditional WHEN execution | ~ ^ ~ ./Single_crystal_validation.c:31230:35: note: use '=' to turn this equality comparison into an assignment 31230 | if ((( scattered_flag_instr == 0 ))) // conditional WHEN execution | ^~ | = 9 warnings generated. DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/arm64-apple-darwin20.0.0-clang finished INFO: ===