File: gcc.patch

package info (click to toggle)
libahp-gt 1.7.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: ansic: 2,459; sh: 15; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: fix warnings from gcc that became errors
Index: libahp-gt-1.7.3/ahp_gt.c
===================================================================
--- libahp-gt-1.7.3.orig/ahp_gt.c	2025-02-26 15:00:00.000000000 +0000
+++ libahp-gt-1.7.3/ahp_gt.c	2025-03-14 12:08:46.074596543 +0000
@@ -1433,7 +1433,7 @@
 int ahp_gt_get_torque(int axis)
 {
     if(!ahp_gt_is_detected(ahp_gt_get_current_device()))
-        return;
+        return 0;
     return devices[ahp_gt_get_current_device()].axis[axis].torque;
 }