File: fix-gcc10-build.patch

package info (click to toggle)
minc-tools 2.3.00%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,700 kB
  • sloc: ansic: 65,674; perl: 7,423; yacc: 1,177; sh: 633; lex: 319; makefile: 223
file content (20 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Nilesh Patra <npatra974@gmail.com>
Description: Append attribute flag to prevent gcc-10 FTBFS
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=957542
Forwarded: no
Last-Updated: July 30, 2020

--- a/conversion/minctoecat/ecat_write.h
+++ b/conversion/minctoecat/ecat_write.h
@@ -39,9 +39,9 @@
   BitData
 } MatrixDataType;
 
-MatrixErrorCode matrix_errno;
+__attribute__((__common__)) MatrixErrorCode matrix_errno;
 
-char matrix_errtxt[132];
+__attribute__((__common__)) char matrix_errtxt[132];
 
 typedef struct XMAIN_HEAD {
   char magic_number[14];