[Android] srgrusso:
I'm building GZOSP 10.0 and I'm running into the following error.

FAILED: /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj_arm/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++	-I device/samsung/gtaxlwifi/include -I ./frameworks/native/include_sensor -I device/samsung/gtaxlwifi/shims/libshim_gpsd -I /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj_arm/SHARED_LIBRARIES/gpsd_shim_intermediates -I /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/gen/SHARED_LIBRARIES/gpsd_shim_intermediates -I libnativehelper/include_jni \$(cat /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj_arm/SHARED_LIBRARIES/gpsd_shim_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv8-a -mfloat-abi=softfp -mfpu=neon-fp-armv8 -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -target armv7a-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -mthumb -Os -fno-rtti -Wall -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-unused-label -Wno-user-defined-warnings -Wno-unused-parameter -Wno-char-subscripts -Wno-string-plus-int -Wno-sometimes-uninitialized -Wno-format-extra-args -Wno-format -Wno-parentheses-equality -Wno-macro-redefined -Wno-logical-op-parentheses -Wno-parentheses -Wno-unused-private-field -Wno-missing-braces -Wno-implicit-function-declaration -Wno-pointer-arith -Wno-gnu-designator -Wno-constant-logical-operand -Wno-incompatible-pointer-types -Wno-address-of-packed-member -Wno-enum-conversion -Wno-self-assign -Wno-reorder -Wno-implicit-fallthrough -Wno-switch -Wno-visibility -Wno-enum-compare-switch -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11 -MD -MF /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj_arm/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.d -o /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj_arm/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.o device/samsung/gtaxlwifi/shims/libshim_gpsd/gpsd.cpp"
device/samsung/gtaxlwifi/shims/libshim_gpsd/gpsd.cpp:28:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion]
{
^
1 error generated.
[ 25% 21844/85560] target C++: gpsd_shim <= device/samsung/gtaxlwifi/shims/libshim_gpsd/gpsd.cpp
FAILED: /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++	-I device/samsung/gtaxlwifi/include -I ./frameworks/native/include_sensor -I device/samsung/gtaxlwifi/shims/libshim_gpsd -I /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/SHARED_LIBRARIES/gpsd_shim_intermediates -I /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/gen/SHARED_LIBRARIES/gpsd_shim_intermediates -I libnativehelper/include_jni \$(cat /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/SHARED_LIBRARIES/gpsd_shim_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -march=armv8-a -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -fno-rtti -Wall -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-unused-label -Wno-user-defined-warnings -Wno-unused-parameter -Wno-char-subscripts -Wno-string-plus-int -Wno-sometimes-uninitialized -Wno-format-extra-args -Wno-format -Wno-parentheses-equality -Wno-macro-redefined -Wno-logical-op-parentheses -Wno-parentheses -Wno-unused-private-field -Wno-missing-braces -Wno-implicit-function-declaration -Wno-pointer-arith -Wno-gnu-designator -Wno-constant-logical-operand -Wno-incompatible-pointer-types -Wno-address-of-packed-member -Wno-enum-conversion -Wno-self-assign -Wno-reorder -Wno-implicit-fallthrough -Wno-switch -Wno-visibility -Wno-enum-compare-switch -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11 -MD -MF /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.d -o /mnt/UserData/Projects/Android-Source/GZOSP-10.0/out/target/product/gtaxlwifi/obj/SHARED_LIBRARIES/gpsd_shim_intermediates/gpsd.o device/samsung/gtaxlwifi/shims/libshim_gpsd/gpsd.cpp"
device/samsung/gtaxlwifi/shims/libshim_gpsd/gpsd.cpp:28:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion]
{
^
1 error generated.

I noticed in the other Roms I build that this is just a warning and doesn't crash the build. Is there anyway to fix this or tell it to be ignored?

Device tree: https://github.com/srgrusso/android_device_samsung_gtaxlwifi/tree/gzosp-10.0-wip

Full log: https://drive.google.com/open?id=1LlIXO7wRnkbESFsEGD0FFK9abNk78zIE

Thanks :)