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

[PATCH] Control reaches end of non-void function error. #350

Open
malcolmlewis opened this issue Dec 25, 2024 · 0 comments
Open

[PATCH] Control reaches end of non-void function error. #350

malcolmlewis opened this issue Dec 25, 2024 · 0 comments

Comments

@malcolmlewis
Copy link

Hi, I'm the openSUSE Packager for nvtop, in the latest build from git, I'm hitting a "control reaches end of non-void function error."

The following proposed patch corrects this;

diff -Naur a/src/extract_gpuinfo_intel.c b/src/extract_gpuinfo_intel.c
--- a/src/extract_gpuinfo_intel.c	2024-12-13 16:39:32.000000000 -0600
+++ b/src/extract_gpuinfo_intel.c	2024-12-24 19:23:07.361394139 -0600
@@ -87,6 +87,7 @@
   case DRIVER_XE:
     return parse_drm_fdinfo_intel_xe(info, fdinfo_file, process_info);
   }
+  return false;
 }
 
 static void add_intel_cards(struct nvtop_device *dev, struct list_head *devices, unsigned *count) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant