--- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -143,7 +143,7 @@ int main(int argc, char **argv) {{ hello_cpp_meson_template = '''project('{project_name}', 'cpp', version : '{version}', default_options : ['warning_level=3', - 'cpp_std=c++14']) + 'cpp_std=c++1y']) exe = executable('{exe_name}', '{source_name}', install : true) @@ -214,7 +214,7 @@ int main(int argc, char **argv) {{ lib_cpp_meson_template = '''project('{project_name}', 'cpp', version : '{version}', - default_options : ['warning_level=3', 'cpp_std=c++14']) + default_options : ['warning_level=3', 'cpp_std=c++1y']) # These arguments are only used to build the shared library # not the executables that use the library. @@ -404,7 +404,7 @@ def create_meson_build(options): default_options = ['warning_level=3'] if options.language == 'cpp': # This shows how to set this very common option. - default_options += ['cpp_std=c++14'] + default_options += ['cpp_std=c++1y'] # If we get a meson.build autoformatter one day, this code could # be simplified quite a bit. formatted_default_options = ', '.join("'{}'".format(x) for x in default_options) --- "a/test cases/common/152 simd/simdchecker.c" +++ "b/test cases/common/152 simd/simdchecker.c" @@ -10,11 +10,12 @@ int check_simd_implementation(float *fou const float *expected, simd_func fptr, const int blocksize) { + int i; int rv = 0; memcpy(four, four_initial, blocksize*sizeof(float)); printf("Using %s.\n", simd_type); fptr(four); - for(int i=0; i