]> Kevux Git Server - fll/commitdiff
Cleanup: Add -Wall when running tests and fix problems exposed by warnings.
authorKevin Day <thekevinday@gmail.com>
Tue, 10 May 2022 03:55:28 +0000 (22:55 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 10 May 2022 03:56:54 +0000 (22:56 -0500)
59 files changed:
level_0/f_account/data/build/settings-tests
level_0/f_capability/data/build/settings-tests
level_0/f_capability/tests/unit/c/test-capability-copy.c
level_0/f_capability/tests/unit/c/test-capability-owner_set.c
level_0/f_capability/tests/unit/c/test-capability-to_name.c
level_0/f_capability/tests/unit/c/test-capability-to_text.c
level_0/f_color/data/build/settings-tests
level_0/f_color/tests/unit/c/test-color-save_1.c
level_0/f_color/tests/unit/c/test-color-save_2.c
level_0/f_color/tests/unit/c/test-color-save_3.c
level_0/f_color/tests/unit/c/test-color-save_4.c
level_0/f_color/tests/unit/c/test-color-save_5.c
level_0/f_console/data/build/settings-tests
level_0/f_control_group/data/build/settings-tests
level_0/f_conversion/data/build/settings-tests
level_0/f_conversion/tests/unit/c/test-conversion-character_to_binary.c
level_0/f_conversion/tests/unit/c/test-conversion-character_to_decimal.c
level_0/f_conversion/tests/unit/c/test-conversion-character_to_duodecimal.c
level_0/f_conversion/tests/unit/c/test-conversion-character_to_hexidecimal.c
level_0/f_conversion/tests/unit/c/test-conversion-character_to_octal.c
level_0/f_directory/data/build/settings-tests
level_0/f_environment/data/build/settings-tests
level_0/f_execute/data/build/settings-tests
level_0/f_file/data/build/settings-tests
level_0/f_file/tests/unit/c/test-file-clone.c
level_0/f_file/tests/unit/c/test-file-link_read.c
level_0/f_file/tests/unit/c/test-file-link_read_at.c
level_0/f_file/tests/unit/c/test-file-size_by_id.c
level_0/f_file/tests/unit/c/test-file-stat_by_id.c
level_0/f_file/tests/unit/c/test-file-stream_close.c
level_0/f_file/tests/unit/c/test-file-stream_read.c
level_0/f_file/tests/unit/c/test-file-stream_read_block.c
level_0/f_file/tests/unit/c/test-file-stream_read_until.c
level_0/f_file/tests/unit/c/test-file-stream_reopen.c
level_0/f_file/tests/unit/c/test-file-type.c
level_0/f_file/tests/unit/c/test-file-type_at.c
level_0/f_iki/data/build/settings-tests
level_0/f_iki/tests/unit/c/test-iki-content_is.c
level_0/f_iki/tests/unit/c/test-iki-content_partial_is.c
level_0/f_iki/tests/unit/c/test-iki-object_is.c
level_0/f_iki/tests/unit/c/test-iki-object_partial_is.c
level_0/f_memory/data/build/settings-tests
level_0/f_string/data/build/settings-tests
level_0/f_string/tests/unit/c/test-string-dynamicss_append_all.c
level_0/f_string/tests/unit/c/test-string-map_multiss_append.c
level_0/f_string/tests/unit/c/test-string-map_multiss_append_all.c
level_0/f_string/tests/unit/c/test-string-maps_append_all.c
level_0/f_string/tests/unit/c/test-string-mapss_append_all.c
level_0/f_string/tests/unit/c/test-string-quantitys_append_all.c
level_0/f_string/tests/unit/c/test-string-ranges_append.c
level_0/f_type_array/data/build/settings-tests
level_0/f_type_array/tests/unit/c/test-type_array-array_lengthss_append.c
level_0/f_type_array/tests/unit/c/test-type_array-fll_ids_append.c
level_0/f_utf/data/build/settings-tests
level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c
level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c
level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c
level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c
level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c

index 9796b6793e0dafb61e01e1c6b666600f56fca931..0d22771a4807cebb8cb72f8b15f57dc35bebc85e 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 9b7cd03529b64e63e5ed52d0941555b22943c5c8..591492d8afe6fde85da67238b3c60bfe0842a694 100644 (file)
@@ -49,6 +49,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index c9407f944089215515ed645259baaa5b6587803a..cd0ff404b267d3d2687d36038e5b6a2b441d1ba7 100644 (file)
@@ -11,18 +11,6 @@ void test__f_capability_copy__fails(void **state) {
     const f_capability_t capability_1 = f_capability_t_initialize;
     f_capability_t capability_2 = f_capability_t_initialize;
 
-    int errnos[] = {
-      EINVAL,
-      ENOMEM,
-      mock_errno_generic,
-    };
-
-    f_status_t statuss[] = {
-      F_parameter,
-      F_memory_not,
-      F_failure,
-    };
-
     for (int i = 0; i < 3; ++i) {
 
       will_return(__wrap_cap_dup, true);
index 7e57945f4588f57693183561ffc7de829fbcb91d..75f85a96a96de03b2c0c0ab0adf6b133e76b87c0 100644 (file)
@@ -50,7 +50,7 @@ void test__f_capability_owner_set__fails(void **state) {
 void test__f_capability_owner_set__works(void **state) {
 
   const f_capability_t capability = f_capability_t_initialize;
-  const uid_t id;
+  const uid_t id = 0;
 
   #if defined(_di_libcap_) || defined(_libcap_legacy_only_)
     printf("[  WARN    ] f_capability_owner_set() is not implemented and cannot be fully tested.\n");
index 96ab5432839b06c97fe9778ecdc612df94160501..556cd99dd8eee961cf9861478d3019c2c2783623 100644 (file)
@@ -69,6 +69,7 @@ void test__f_capability_to_name__works(void **state) {
     #if defined(_di_libcap_)
       assert_int_equal(F_status_set_fine(status), F_implemented_not);
     #else
+      assert_int_equal(status, F_none);
       assert_string_equal(name.string, string);
       assert_int_equal(name.used, 9);
     #endif // defined(_di_libcap_)
index 4308e3a7ce4d1f854e8d9c8446cf4d25054321b8..49e376aa52fcc7d50f8ec1a231f10ee58b7b7e97 100644 (file)
@@ -70,6 +70,7 @@ void test__f_capability_to_text__works(void **state) {
     #if defined(_di_libcap_)
       assert_int_equal(F_status_set_fine(status), F_implemented_not);
     #else
+      assert_int_equal(status, F_none);
       assert_string_equal(text.string, string);
       assert_int_equal(text.used, 9);
     #endif // defined(_di_libcap_)
index 16dff8483eaba8f3dafb1502c90537dee0b94294..650a780c915615d3be0da5cda90175ea9536731d 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 2cdb00e8aa5aac7653dcbf280ef3a4133bb5fd12..d2750e96615d0603b506574d99ca5f7805e76a46 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 #ifndef _di_level_0_parameter_checking_
   void test__f_color_save_1_parameter_checking(void **state) {
 
-    f_string_static_t buffer = f_string_static_t_initialize;
     const f_color_format_t format = f_color_format_t_initialize;
     const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
 
index c61832c64d1ccb3db6660749deb571372b674983..68eb5129726f7acf0f635c4c39447eb7d3a99ca5 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 #ifndef _di_level_0_parameter_checking_
   void test__f_color_save_2_parameter_checking(void **state) {
 
-    f_string_static_t buffer = f_string_static_t_initialize;
     const f_color_format_t format = f_color_format_t_initialize;
     const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
 
index e3e4c0ed14f7a0380408c4ebe99117073735e022..db7b0ab28e3c2e566f3095e57f4ccd5f3ca174bd 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 #ifndef _di_level_0_parameter_checking_
   void test__f_color_save_3_parameter_checking(void **state) {
 
-    f_string_static_t buffer = f_string_static_t_initialize;
     const f_color_format_t format = f_color_format_t_initialize;
     const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
 
index 5656ab89781bef5701808bb27ee9136b01244a99..2db5d12cb2115a5a927943b16a97c2e4919105ae 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 #ifndef _di_level_0_parameter_checking_
   void test__f_color_save_4_parameter_checking(void **state) {
 
-    f_string_static_t buffer = f_string_static_t_initialize;
     const f_color_format_t format = f_color_format_t_initialize;
     const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
 
index e5d57ceb69f10b3e01b4941b1355a7f1782312f9..3e983da60d385b99344de8cdd4ddd5b658aa1197 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 #ifndef _di_level_0_parameter_checking_
   void test__f_color_save_5_parameter_checking(void **state) {
 
-    f_string_static_t buffer = f_string_static_t_initialize;
     const f_color_format_t format = f_color_format_t_initialize;
     const f_string_static_t color = macro_f_string_static_t_initialize2("color", 5);
 
index 80f5ef477d57379534bf434ac0810b8080fc7116..99de552edfa109f3c01fc73807ab6724d599af16 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 834be39032ac10e7768af56f4c4c43ef4a9576b0..cc75343b2b0e9aa88611d06c7bd234307e09f617 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 34df4cb709f04fa562e8b76e04b592b433e99f65..bec86eefb0b87a206b20f0890ef1cf3d84b10469 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index b3a4a8694bcb4c3be04ef643dd06648ee99b3d7e..de97bed27f892d84398a675db9cf6cd59eb1a7c9 100644 (file)
@@ -47,7 +47,7 @@ void test__f_conversion_character_to_binary__works(void **state) {
 
     number = 255;
 
-    const f_status_t status = f_conversion_character_to_binary(i, &number);
+    f_conversion_character_to_binary(i, &number);
 
     switch (i) {
       case '0':
index 606dd17bccad302de4e409b32265623e7b3bf7b1..74b679af066aed44ddf1d67b86ae0dbbd1841065 100644 (file)
@@ -55,7 +55,7 @@ void test__f_conversion_character_to_decimal__works(void **state) {
 
     number = 255;
 
-    const f_status_t status = f_conversion_character_to_decimal(i, &number);
+    f_conversion_character_to_decimal(i, &number);
 
     switch (i) {
       case '0':
index 07ad746253944f4d31fb55d1cc41f57fa648983a..47d37279db0e55e499abfa0936b1fdb688ac309c 100644 (file)
@@ -59,7 +59,7 @@ void test__f_conversion_character_to_duodecimal__works(void **state) {
 
     number = 255;
 
-    const f_status_t status = f_conversion_character_to_duodecimal(i, &number);
+    f_conversion_character_to_duodecimal(i, &number);
 
     switch (i) {
       case '0':
index 700c8f6eaaaf2a6084fc7e7eff9c5e46b62bf483..ff3d4e349665e9076700a4fcf1a387152199885a 100644 (file)
@@ -67,7 +67,7 @@ void test__f_conversion_character_to_hexidecimal__works(void **state) {
 
     number = 255;
 
-    const f_status_t status = f_conversion_character_to_hexidecimal(i, &number);
+    f_conversion_character_to_hexidecimal(i, &number);
 
     switch (i) {
       case '0':
index 5c454bfc0430f5400e883cb068edc31db95bdaf5..490ccd3dcf34d086c04665911fef758fb43640be 100644 (file)
@@ -53,7 +53,7 @@ void test__f_conversion_character_to_octal__works(void **state) {
 
     number = 255;
 
-    const f_status_t status = f_conversion_character_to_octal(i, &number);
+    f_conversion_character_to_octal(i, &number);
 
     switch (i) {
       case '0':
index dd21d113f8d964f10d06ba212632256f89326344..0244e5a4a89e88c633ff82b8e110eba82f90d97e 100644 (file)
@@ -47,6 +47,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 3428a36f06c02ecbb7da6486609eecf236f892c7..2678679c83f3cafc6af84f626410d1f8c9d8e3db 100644 (file)
@@ -49,6 +49,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index dc8c67d12d972e2dd1b3bf2280f2c04c99227098..9ca24d1f6beb391875b9ceb1465e628edce189c2 100644 (file)
@@ -49,6 +49,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 9108db4a225ff3d0945143f4818bc25c4bb0a465..6865f9b2122c3f7bf405b12e52d2d70cf136828b 100644 (file)
@@ -48,6 +48,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 1bc42db379a330be6e1370c858144b4feea53d63..1d188514c60ecf49429efc11349d5af2609c4e94 100644 (file)
@@ -349,15 +349,6 @@ void test__f_file_clone__fails_for_other(void **state) {
       F_file_type_socket_d,
     };
 
-    f_status_t statuss[] = {
-      F_supported_not,
-      F_supported_not,
-      F_supported_not,
-      F_supported_not,
-      F_supported_not,
-      F_supported_not,
-    };
-
     struct stat statistics;
 
     memset(&statistics, 0, sizeof(struct stat));
index 2f4398fcedf16e5593569e9b8ff85fee53d20c06..0ab03780353efceee56931ddbe1fb3cc42056070 100644 (file)
@@ -83,7 +83,6 @@ void test__f_file_link_read__fails(void **state) {
 
 void test__f_file_link_read__returns_data_not(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
 
   struct stat statistics;
 
index 7e0a064d9770fd0a41edab9620c0b9f2154ad81c..23f2f3b10e8b83513ddcdf05336e2b97e711192c 100644 (file)
@@ -79,8 +79,6 @@ void test__f_file_link_read_at__fails(void **state) {
 
 void test__f_file_link_read_at__returns_data_not(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
 
   {
index 16bfd1bab9a279b8963a34772b7773cd72139df3..619e993deb67d334eee41388c6f7940db5524b62 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_file_size_by_id__fails(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   int errnos[] = {
     EACCES,
     EBADF,
@@ -74,8 +72,6 @@ void test__f_file_size_by_id__returns_file_closed(void **state) {
 
 void test__f_file_size_by_id__works(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   struct stat statistics;
 
   memset(&statistics, 0, sizeof(struct stat));
index 723b2f9779d78599b446c18ce6f83cf4e05d4ac6..ca8c5a052437373ef8ee168d079f5eb4184b0ff2 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_file_stat_by_id__fails(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   int errnos[] = {
     EACCES,
     EBADF,
@@ -78,8 +76,6 @@ void test__f_file_stat_by_id__returns_file_closed(void **state) {
 
 void test__f_file_stat_by_id__works(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   struct stat statistics;
 
   memset(&statistics, 0, sizeof(struct stat));
index e4558236f0e7bdac5ab7e3afb01538d9fdfafd25..aaf8aabe94d265ef4498acefb6341dc2e3401c6b 100644 (file)
@@ -25,15 +25,6 @@ void test__f_file_stream_close__fails_for_file_descriptor(void **state) {
     mock_errno_generic,
   };
 
-  f_status_t status_flushs[] = {
-    F_file_descriptor,
-    F_filesystem_quota_block,
-    F_supported_not,
-    F_input_output,
-    F_space_not,
-    F_supported_not,
-  };
-
   f_status_t status_closes[] = {
     F_file_descriptor,
     F_filesystem_quota_block,
@@ -103,28 +94,6 @@ void test__f_file_stream_close__fails_for_stream(void **state) {
     mock_errno_generic,
   };
 
-  f_status_t status_flushs[] = {
-    F_access_denied,
-    F_block,
-    F_file_descriptor,
-    F_file_overflow,
-    F_deadlock,
-    F_socket_not,
-    F_space_not,
-    F_buffer,
-    F_interrupt,
-    F_parameter,
-    F_input_output,
-    F_file_descriptor_max,
-    F_lock,
-    F_space_not,
-    F_file_type_not_directory,
-    F_prohibited,
-    F_pipe_not,
-    F_block,
-    F_file_synchronize,
-  };
-
   f_status_t status_closes[] = {
     F_access_denied,
     F_block,
index 5016d8b4e0e47d34284d02ca8cc0c31ae47b5a53..2a8b581db0f6e4ab519729e3c1054f9e755d7ff4 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_file_stream_read__fails(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   int errnos[] = {
     EAGAIN,
     EBADF,
@@ -106,8 +104,6 @@ void test__f_file_stream_read__returns_file_closed(void **state) {
 
 void test__f_file_stream_read__works(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
 
   {
index c5da1c0b72e26255e7aeafef66e0a463e5533ff2..0410682546f9668cf0457bfc4cd8e4083b8e89c0 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_file_stream_read_block__fails(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   int errnos[] = {
     EAGAIN,
     EBADF,
@@ -105,8 +103,6 @@ void test__f_file_stream_read_block__returns_file_closed(void **state) {
 
 void test__f_file_stream_read_block__works(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
 
   {
index 9a3384fc3c0a6db0be529ac2dc24f35be12f2ddf..dbdbfd7a17205eb4ee44de95eada6508efc82a29 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_file_stream_read_until__fails(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   int errnos[] = {
     EAGAIN,
     EBADF,
@@ -108,8 +106,6 @@ void test__f_file_stream_read_until__returns_file_closed(void **state) {
 
 void test__f_file_stream_read_until__works(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
 
   {
index 352da5535c2b2bdb07aafb5ed4739b9f39cf00ad..e176a4881c3e55e2653e1840939b796e97caa781 100644 (file)
@@ -91,8 +91,6 @@ void test__f_file_stream_reopen__fails(void **state) {
 
 void test__f_file_stream_reopen__returns_data_not(void **state) {
 
-  const f_string_static_t path = macro_f_string_static_t_initialize("test", 0, 4);
-
   {
     f_file_t file = f_file_t_initialize;
 
index cb57a60363062e2d61818524b36698e5b19c341e..55e01c348c1c38d0b4ba46ef57126a89c1388769 100644 (file)
@@ -37,12 +37,12 @@ void test__f_file_type__fails(void **state) {
 
   for (int i = 0; i < 10; ++i) {
 
-    mode_t mode = 0;
+    int type = 0;
 
     will_return(__wrap_lstat, true);
     will_return(__wrap_lstat, errnos[i]);
 
-    const f_status_t status = f_file_type(path, F_false, &mode);
+    const f_status_t status = f_file_type(path, F_false, &type);
 
     assert_int_equal(F_status_set_fine(status), statuss[i]);
   } // for
index d4eab0093ef9e43142814d5056d818abc37dbacf..8ea5a8a12a3f3c2333715ac6d9f6845d2b9057fb 100644 (file)
@@ -37,7 +37,7 @@ void test__f_file_type_at__fails(void **state) {
 
   for (int i = 0; i < 10; ++i) {
 
-    mode_t mode = 0;
+    int mode = 0;
 
     will_return(__wrap_fstatat, true);
     will_return(__wrap_fstatat, errnos[i]);
index 43db8733773ad439d796d5f598d66e00e5392998..91d02957a52a081620ce671d92c321c424d330ee 100644 (file)
@@ -49,6 +49,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index ac930493d99d5359045660d3eadac8964e7b2d17..bf776514d337ccd80133575d1a847dd91f868f98 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_iki_content_is__returns_false(void **state) {
 
-  f_string_static_t content = f_string_static_t_initialize;
-
   const f_string_static_t contents[] = {
     macro_f_string_static_t_initialize("'false", 0, 6),
     macro_f_string_static_t_initialize("false'", 0, 6),
@@ -65,8 +63,6 @@ void test__f_iki_content_is__returns_data_not(void **state) {
 
 void test__f_iki_content_is__returns_true(void **state) {
 
-  f_string_static_t content = f_string_static_t_initialize;
-
   const f_string_static_t contents[] = {
     macro_f_string_static_t_initialize("works", 0, 5),
     macro_f_string_static_t_initialize("also works", 0, 10),
index 5e135bd750bf94801b826d957f1c488730ace451..9f3da1cbeef07303dd5ad6ad01b0371df5b1bdbd 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_iki_content_partial_is__returns_false(void **state) {
 
-  f_string_static_t content = f_string_static_t_initialize;
-
   const f_string_static_t contents[] = {
     macro_f_string_static_t_initialize("xxxx' falsexxxx", 0, 15),
     macro_f_string_static_t_initialize("xxxx'falsexxxx", 0, 14),
@@ -107,8 +105,6 @@ void test__f_iki_content_partial_is__returns_data_not_stop(void **state) {
 
 void test__f_iki_content_partial_is__returns_true(void **state) {
 
-  f_string_static_t content = f_string_static_t_initialize;
-
   const f_string_static_t contents[] = {
     macro_f_string_static_t_initialize("xxxxworksxxxx", 0, 13),
     macro_f_string_static_t_initialize("xxxxalso worksxxxx", 0, 18),
index 0abc946d873552333e63017fde3a5cc94dca5a19..d55d8d6d0e958ebdbaaad2f9e91847381c05b46b 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_iki_object_is__returns_false(void **state) {
 
-  f_string_static_t object = f_string_static_t_initialize;
-
   const f_string_static_t objects[] = {
     macro_f_string_static_t_initialize("fa lse", 0, 6),
     macro_f_string_static_t_initialize("filse@", 0, 6),
@@ -45,8 +43,6 @@ void test__f_iki_object_is__returns_data_not(void **state) {
 
 void test__f_iki_object_is__returns_true(void **state) {
 
-  f_string_static_t object = f_string_static_t_initialize;
-
   const f_string_static_t objects[] = {
     macro_f_string_static_t_initialize("works", 0, 5),
     macro_f_string_static_t_initialize("wor_ks", 0, 6),
index 63a39c61c3729562b25439e570c2ae63cab88175..a06d26622bbbbc6313b36740a26b1b9dc28fb56f 100644 (file)
@@ -7,8 +7,6 @@ extern "C" {
 
 void test__f_iki_object_partial_is__returns_false(void **state) {
 
-  f_string_static_t object = f_string_static_t_initialize;
-
   const f_string_static_t objects[] = {
     macro_f_string_static_t_initialize("xxxxfa lsexxxx", 0, 14),
     macro_f_string_static_t_initialize("xxxxfalse@xxxx", 0, 14),
@@ -86,8 +84,6 @@ void test__f_iki_object_partial_is__returns_data_not_stop(void **state) {
 
 void test__f_iki_object_partial_is__returns_true(void **state) {
 
-  f_string_static_t object = f_string_static_t_initialize;
-
   const f_string_static_t objects[] = {
     macro_f_string_static_t_initialize("xxxxworksxxxx", 0, 13),
     macro_f_string_static_t_initialize("xxxxwor_ksxxxx", 0, 14),
index 68024e94fdac73aa20d1080380cda816b51fcf83..d5a2f04f60d3fae41f98bee28013759dfe712e49 100644 (file)
@@ -45,6 +45,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index c9d200cfee9da26c5a7580e59e5d072ed031baea..134eea51983a182b45834eb22eacaeffc17b8716 100644 (file)
@@ -70,6 +70,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 6b55e4685d77f8363e6be352094e98f46b67247c..31cee0ec901ef12a2bb79a9fe68452e5c35c612c 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_string_dynamicss_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   const int length_outer = 2;
   f_string_dynamicss_t source = f_string_dynamicss_t_initialize;
@@ -26,7 +25,6 @@ void test__f_string_dynamicss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {
 
index 8fb8580a95f5e649026a3638825db2038ae73cec..e15e43d3376c4dbd18db5c966e794ac114e680b6 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 void test__f_string_map_multiss_append__works(void **state) {
 
   const int length_values = 2;
-  const int length_values_set = 2;
   const int length_inner = 2;
   f_string_map_multis_t source = f_string_map_multis_t_initialize;
   f_string_map_multiss_t destination = f_string_map_multiss_t_initialize;
index cdec36bdcfb873a982d6fccf28a9f64eb4c0345b..38cfa3d04102dabe2aaf6ba5d5a8048da3c05139 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 void test__f_string_map_multiss_append_all__works(void **state) {
 
   const int length_values = 2;
-  const int length_values_set = 2;
   const int length_inner = 2;
   const int length_outer = 2;
   f_string_map_multiss_t source = f_string_map_multiss_t_initialize;
@@ -42,7 +41,6 @@ void test__f_string_map_multiss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {
 
index d985f05da3b56dabf4f6fb69709c94603e9de961..6ed8a3b210f42601ea2ef156b4c582d90c78bc01 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_string_maps_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   f_string_maps_t source = f_string_maps_t_initialize;
   f_string_maps_t destination = f_string_maps_t_initialize;
index d1639cc40bb1bef083f9d9301976e27a19631986..41b2f2453d42f49b3008f02fc2f0f74cf5c783cd 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_string_mapss_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   const int length_outer = 2;
   f_string_mapss_t source = f_string_mapss_t_initialize;
@@ -31,7 +30,6 @@ void test__f_string_mapss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {
 
index 5d761c5b6db294fe5f40079eba2d7dfe81ec4482..29c67a4bd09a05b8c2a824024e7f7712f79fcacd 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_string_quantitys_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_sources = 2;
 
   f_string_quantity_t sources_array[] = {
index b126fb030574ea3f4a84e9da7ae8b849cb887c35..b1d702347bfbd113ef311854af690f05abaca3dc 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_string_ranges_append__works(void **state) {
 
-  const f_array_length_t length = 5;
   const f_string_range_t source = macro_f_string_range_t_initialize(1, 2);
   f_string_ranges_t destination = f_string_ranges_t_initialize;
 
index 2ef63b2ed4a326c1415e8d8f52f048ab8ea09016..dcad9c51a1fe0ab45a4893ea79417676e4913dad 100644 (file)
@@ -75,6 +75,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 53d7abdbd646c486bb2debed8e04a691c470d1d2..5235bc15e9eae2e4d23da505e1ed10b1670e5130 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 void test__f_type_array_array_lengthss_append__works(void **state) {
 
   const int length = 5;
-  const int length_inner = 2;
   f_array_lengths_t source = f_array_lengths_t_initialize;
   f_array_lengthss_t destination = f_array_lengthss_t_initialize;
 
index e208d80b18cffe5365b5290362f8eefc49006be5..880420302dbf40db33095682204cd7b69b23c187 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_type_array_fll_ids_append__works(void **state) {
 
-  const int length = 5;
   const f_fll_id_t source = { .name = "test", .type = 1, .used = 4 };
   f_fll_ids_t destination = f_fll_ids_t_initialize;
 
index 0911466051dcd3ed6df1171933b8070b3c22646f..19dbd75b340984cb8de0e8619f773ad75cff3fa1 100644 (file)
@@ -68,6 +68,6 @@ defines_shared -Lbuild/libraries/shared
 
 flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses
 flags-clang -Wno-logical-op-parentheses
-flags-test -fstack-protector
+flags-test -fstack-protector -Wall
 
 flags_program -fPIE
index 66b2b6a57a9079bc4f557c0db09d4121a041adb4..cdfc1af540cab2ff59b8c2539bfde1d32690bfe8 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_utf_dynamicss_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   const int length_outer = 2;
   f_utf_string_dynamicss_t source = f_utf_string_dynamicss_t_initialize;
@@ -26,7 +25,6 @@ void test__f_utf_dynamicss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {
 
index 1c5fdd725f3eb2ad879393379411533f9905be4d..08cb2ec3a87f065cc5af070d2a6a060ccfcf7568 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 void test__f_utf_map_multiss_append__works(void **state) {
 
   const int length_values = 2;
-  const int length_values_set = 2;
   const int length_inner = 2;
   f_utf_string_map_multis_t source = f_utf_string_map_multis_t_initialize;
   f_utf_string_map_multiss_t destination = f_utf_string_map_multiss_t_initialize;
index 8e596b6a35c2fc09d1c10799d53bdf38130914ce..a729aec6b3d0f9e938468bd3d8d07b5a181e59c8 100644 (file)
@@ -8,7 +8,6 @@ extern "C" {
 void test__f_utf_map_multiss_append_all__works(void **state) {
 
   const int length_values = 2;
-  const int length_values_set = 2;
   const int length_inner = 2;
   const int length_outer = 2;
   f_utf_string_map_multiss_t source = f_utf_string_map_multiss_t_initialize;
@@ -42,7 +41,6 @@ void test__f_utf_map_multiss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {
 
index c168c59959bce65efa576c1b27bec5e8bd444de4..12ccf8a3a8db4538be1e5a196422d21cf7af122f 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_utf_maps_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   f_utf_string_maps_t source = f_utf_string_maps_t_initialize;
   f_utf_string_maps_t destination = f_utf_string_maps_t_initialize;
index 0205c2dd557c95fc7a587ac8134c60355a1e0baa..f7f1e110411fbcfa61bee169ec34cf1858920523 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 void test__f_utf_mapss_append_all__works(void **state) {
 
-  const int length = 5;
   const int length_inner = 2;
   const int length_outer = 2;
   f_utf_string_mapss_t source = f_utf_string_mapss_t_initialize;
@@ -31,7 +30,6 @@ void test__f_utf_mapss_append_all__works(void **state) {
     assert_int_equal(source.size, length_outer);
 
     f_array_length_t i = 0;
-    f_array_length_t j = 0;
 
     for (; source.used < length_outer; ++source.used) {