File: remove-pack-pragma-when-c-convention.diff

package info (click to toggle)
libtexttools 2.1.0-26
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 964 kB
  • sloc: ada: 11,394; ansic: 529; makefile: 104; sed: 75; sh: 12
file content (14 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: pragma Pack for a record may invalidate C convention for fields
 GCC-6 now warns about this.
Author: Nicolas Boulenguez <nicolas@debian.org>

--- a/src/windows.ads
+++ b/src/windows.ads
@@ -314,7 +314,6 @@
      XScroll  : integer;       -- amount of scrolling from home position
      YScroll  : integer;       -- ditto
 end record;
-pragma Pack( AWindow );
 
 Window : array( 1..AWindowNumber'Last ) of AWindow; -- stack of windows
 NextWindow : AWindowNumber; -- next free window, 0 = no more