File: 003-fix-return-for-clang.patch

package info (click to toggle)
unicon 3.0.4%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,012 kB
  • sloc: ansic: 185,000; cpp: 12,565; makefile: 818; sh: 298
file content (23 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: fix FTBFS with clang instead of gcc
 - Fixed return void in unicon/ImmModules/cce/inputs/tab2dat.c
 .
Author: Arthur Marble <arthur@info9.net>
Bug-Debian: https://bugs.debian.org/739924
Forwarded: not-needed

---

Reviewed-By: xiao sheng wen <atzlinux@sina.com>
Last-Update: 2021-01-07

--- unicon-3.0.4+dfsg1.orig/unicon/ImmModules/cce/inputs/tab2dat.c
+++ unicon-3.0.4+dfsg1/unicon/ImmModules/cce/inputs/tab2dat.c
@@ -30,7 +30,7 @@ load_phr (int j, char *tt, int n)
     {
       printf ("phrase error %d\n", len);
       strncpy (tt, "err", n);
-      return 1;
+      return;
     }
 
   ofs[0] += (cur_table->PhraseNum + 1) * 4;