We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I met two new bugs:
[ 73%] Building C object samples/socketio_connect/CMakeFiles/socketio_connect.dir/main.c.o cd ....../azure-c-shared-utility/build_24.04/samples/tlsio_connect && /usr/bin/c++ -DARCHITECTURE_x86_64=1 -DOPENSSL_API_COMPAT=0x10101000L -DUSE_HTTP -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -std=gnu++11 -fPIE -MD -MT samples/tlsio_connect/CMakeFiles/tlsio_connect.dir/main.cxx.o -MF CMakeFiles/tlsio_connect.dir/main.cxx.o.d -o CMakeFiles/tlsio_connect.dir/main.cxx.o -c ....../azure-c-shared-utility/build_24.04/samples/tlsio_connect/main.cxx cd ....../azure-c-shared-utility/build_24.04/samples/socketio_connect && /usr/bin/cc -DARCHITECTURE_x86_64=1 -DOPENSSL_API_COMPAT=0x10101000L -DUSE_HTTP -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -std=gnu99 -fPIE -MD -MT samples/socketio_connect/CMakeFiles/socketio_connect.dir/main.c.o -MF CMakeFiles/socketio_connect.dir/main.c.o.d -o CMakeFiles/socketio_connect.dir/main.c.o -c ....../azure-c-shared-utility/samples/socketio_connect/main.c ....../azure-c-shared-utility/deps/umock-c/deps/c-logging/v2/src/log_errno_linux.c:17:13: error: ‘unused_var_function’ defined but not used [-Werror=unused-function] 17 | static void unused_var_function(void) | ^~~~~~~~~~~~~~~~~~~ In file included from ....../azure-c-shared-utility/deps/umock-c/src/umock_c.c:6: ....../azure-c-shared-utility/deps/umock-c/src/umock_c.c: In function ‘MU_UMOCK_C_STATE_ToString’: ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:230:28: error: comparison of integer expressions of different signedness: ‘int’ and ‘UMOCK_C_STATE’ {aka ‘enum UMOCK_C_STATE_TAG’} [-Werror=sign-compare] 230 | if (current_enum_value == value) \ | ^~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13578:1: note: in expansion of macro ‘MU_INTERNAL_ASSIGN_ENUM_VALUE’ 13578 | X(3, P1) \ | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:107:21: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_3’ 107 | #define MU_C2_(x,y) x##y | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:275:9: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED’ 275 | MU_FOR_EACH_1_COUNTED(MU_INTERNAL_ASSIGN_ENUM_VALUE, __VA_ARGS__) \ | ^~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:282:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE’ 282 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE(enumName, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:286:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID’ 286 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID(enumName, MU_C2(enumName, _INVALID), __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/umock-c/src/umock_c.c:21:1: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS’ 21 | MU_DEFINE_ENUM_STRINGS(UMOCK_C_STATE, UMOCK_C_STATE_VALUES); | ^~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:230:28: error: comparison of integer expressions of different signedness: ‘int’ and ‘UMOCK_C_STATE’ {aka ‘enum UMOCK_C_STATE_TAG’} [-Werror=sign-compare] 230 | if (current_enum_value == value) \ | ^~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13574:1: note: in expansion of macro ‘MU_INTERNAL_ASSIGN_ENUM_VALUE’ 13574 | X(2, P1) \ | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13579:1: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_2’ 13579 | MU_FOR_EACH_1_COUNTED_2(X, P2, P3) | ^~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:107:21: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_3’ 107 | #define MU_C2_(x,y) x##y | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:275:9: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED’ 275 | MU_FOR_EACH_1_COUNTED(MU_INTERNAL_ASSIGN_ENUM_VALUE, __VA_ARGS__) \ | ^~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:282:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE’ 282 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE(enumName, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:286:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID’ 286 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID(enumName, MU_C2(enumName, _INVALID), __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/umock-c/src/umock_c.c:21:1: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS’ 21 | MU_DEFINE_ENUM_STRINGS(UMOCK_C_STATE, UMOCK_C_STATE_VALUES); | ^~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:230:28: error: comparison of integer expressions of different signedness: ‘int’ and ‘UMOCK_C_STATE’ {aka ‘enum UMOCK_C_STATE_TAG’} [-Werror=sign-compare] 230 | if (current_enum_value == value) \ | ^~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13571:5: note: in expansion of macro ‘MU_INTERNAL_ASSIGN_ENUM_VALUE’ 13571 | X(1, P1) | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13575:1: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_1’ 13575 | MU_FOR_EACH_1_COUNTED_1(X, P2) | ^~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils_generated.h:13579:1: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_2’ 13579 | MU_FOR_EACH_1_COUNTED_2(X, P2, P3) | ^~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:107:21: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED_3’ 107 | #define MU_C2_(x,y) x##y | ^ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:275:9: note: in expansion of macro ‘MU_FOR_EACH_1_COUNTED’ 275 | MU_FOR_EACH_1_COUNTED(MU_INTERNAL_ASSIGN_ENUM_VALUE, __VA_ARGS__) \ | ^~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:282:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE’ 282 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID_COMMON_CODE(enumName, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/azure-macro-utils-c/inc/macro_utils/macro_utils.h:286:5: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID’ 286 | MU_DEFINE_ENUM_STRINGS_WITHOUT_INVALID(enumName, MU_C2(enumName, _INVALID), __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....../azure-c-shared-utility/deps/umock-c/src/umock_c.c:21:1: note: in expansion of macro ‘MU_DEFINE_ENUM_STRINGS’ 21 | MU_DEFINE_ENUM_STRINGS(UMOCK_C_STATE, UMOCK_C_STATE_VALUES); | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [deps/umock-c/deps/c-logging/v2/CMakeFiles/c_logging_v2_core.dir/build.make:247: deps/umock-c/deps/c-logging/v2/CMakeFiles/c_logging_v2_core.dir/src/log_errno_linux.c.o] Error 1 make[2]: Leaving directory '....../azure-c-shared-utility/build_24.04' make[1]: *** [CMakeFiles/Makefile2:1277: deps/umock-c/deps/c-logging/v2/CMakeFiles/c_logging_v2_core.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[2]: *** [deps/umock-c/CMakeFiles/umock_c.dir/build.make:79: deps/umock-c/CMakeFiles/umock_c.dir/src/umock_c.c.o] Error 1 make[2]: Leaving directory '....../azure-c-shared-utility/build_24.04' make[1]: *** [CMakeFiles/Makefile2:1225: deps/umock-c/CMakeFiles/umock_c.dir/all] Error 2 [ 73%] Linking C executable socketio_connect cd ....../azure-c-shared-utility/build_24.04/samples/socketio_connect && /usr/bin/cmake -E cmake_link_script CMakeFiles/socketio_connect.dir/link.txt --verbose=1 [ 73%] Linking CXX executable tlsio_connect cd ....../azure-c-shared-utility/build_24.04/samples/tlsio_connect && /usr/bin/cmake -E cmake_link_script CMakeFiles/tlsio_connect.dir/link.txt --verbose=1 /usr/bin/cc -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG CMakeFiles/socketio_connect.dir/main.c.o -o socketio_connect -Wl,-rpath,....../azure-c-shared-utility/build_24.04 ../../libaziotsharedutil.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so -lpthread -lm -lrt -luuid [ 73%] Linking C executable iot_c_utility /usr/bin/c++ -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG CMakeFiles/tlsio_connect.dir/main.cxx.o -o tlsio_connect -Wl,-rpath,....../azure-c-shared-utility/build_24.04 ../../libaziotsharedutil.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so -lpthread -lm -lrt -luuid cd ....../azure-c-shared-utility/build_24.04/samples/iot_c_utility && /usr/bin/cmake -E cmake_link_script CMakeFiles/iot_c_utility.dir/link.txt --verbose=1 /usr/bin/cc -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG CMakeFiles/iot_c_utility.dir/iot_c_utility.c.o -o iot_c_utility -Wl,-rpath,....../azure-c-shared-utility/build_24.04 ../../libaziotsharedutil.so /usr/lib/x86_64-linux-gnu/libcurl.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so -lpthread -lm -lrt -luuid make[2]: Leaving directory '....../azure-c-shared-utility/build_24.04' make[2]: Leaving directory '....../azure-c-shared-utility/build_24.04' [ 73%] Built target socketio_connect make[2]: Leaving directory '....../azure-c-shared-utility/build_24.04' [ 73%] Built target tlsio_connect [ 73%] Built target iot_c_utility make[1]: Leaving directory '....../azure-c-shared-utility/build_24.04' make: *** [Makefile:149: all] Error 2
Can be summarized as:
17 | static void unused_var_function(void)```
230 | if (current_enum_value == value) \
Can anybody take a look? Cheers
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I met two new bugs:
Can be summarized as:
230 | if (current_enum_value == value) \
The text was updated successfully, but these errors were encountered: