nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

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

Open malcolmlewis opened this issue 1 year ago • 0 comments

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) {

malcolmlewis avatar Dec 25 '24 01:12 malcolmlewis