Skip to content
New issue

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

error: ‘tRet’ may be used uninitialized in this function [-Werror=maybe-uninitialized] #83

Open
RoyAmoyal opened this issue Mar 24, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@RoyAmoyal
Copy link

RoyAmoyal commented Mar 24, 2024

Hey, I am trying to install the drivers for our imx327-c camera but I am getting the next errors:

/home/roy/Desktop/jetson_camera_imx/vc_mipi_nvidia/build/Nano_32.5.2/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/i2c/vc_mipi_core.c: In function ‘vc_core_get_mode’:
/home/roy/Desktop/jetson_camera_imx/vc_mipi_nvidia/build/Nano_32.5.2/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/i2c/vc_mipi_core.c:648:16: error: ‘tRet’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         return tRet;
                ^~~~
cc1: all warnings being treated as errors
/home/roy/Desktop/jetson_camera_imx/vc_mipi_nvidia/build/Nano_32.5.2/Linux_for_Tegra/source/public/kernel/kernel-4.9/scripts/Makefile.build:335: recipe for target 'drivers/media/i2c/vc_mipi_core.o' failed
make[4]: *** [drivers/media/i2c/vc_mipi_core.o] Error 1
/home/roy/Desktop/jetson_camera_imx/vc_mipi_nvidia/build/Nano_32.5.2/Linux_for_Tegra/source/public/kernel/kernel-4.9/scripts/Makefile.build:649: recipe for target 'drivers/media/i2c' failed
make[3]: *** [drivers/media/i2c] Error 2
make[3]: *** Waiting for unfinished jobs....

Host hardware: Ubuntu 18.04
Target: Nvidia Jetson Nano 4GB development kit (B01), L4T R32.5.2
Camera: IMX327-c
How can I fix that? I tried with the master and tags: v0.16.0,v0.17.0 and v0.17.1, its the same error in all of them.

Thanks, Roy.

@FleetWithMac
Copy link

Hi try the v0.15.1 tag

@bazo80
Copy link
Collaborator

bazo80 commented Apr 24, 2024

Hello @RoyAmoyal , hello @FleetWithMac ,

we will insert a small bugfix release, maybe 0.17.2, which will fix that issue. There has been a refactoring and not all of the L4Ts has been tested with it. Sorry for that inconvenience. Basically this is not a major issue, you could simply initialize the tRet variable right after the instantiation:

vc_mode tRet;
memset(&tRet, 0, sizeof(tRet));

@pmliquify pmliquify added this to the NVIDIA v0.17.2 milestone May 6, 2024
@pmliquify pmliquify added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants