File: gdc-updates.diff

package info (click to toggle)
gcc-6 6.3.0-18%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 97,120 kB
  • sloc: makefile: 2,249; sh: 956; python: 829; perl: 165; awk: 23; cpp: 14
file content (26 lines) | stat: -rw-r--r-- 948 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
24
25
26
# DP: gdc updates up to 20160115.

	* Make-lang.in (d-warn): Filter out -Wmissing-format-attribute.

--- a/src/gcc/d/Make-lang.in
+++ b/src/gcc/d/Make-lang.in
@@ -51,7 +51,7 @@
 	cp gdc$(exeext) gdc-cross$(exeext)
 
 # Filter out pedantic and virtual overload warnings.
-d-warn = $(filter-out -pedantic -Woverloaded-virtual, $(STRICT_WARN))
+d-warn = $(filter-out -pedantic -Woverloaded-virtual -Wmissing-format-attribute, $(STRICT_WARN))
 
 # D Frontend has slightly relaxed warnings compared to rest of GDC.
 DMD_WARN_CXXFLAGS = -Wno-deprecated -Wstrict-aliasing -Wuninitialized
--- a/src/libphobos/src/std/internal/math/gammafunction.d
+++ b/src/libphobos/src/std/internal/math/gammafunction.d
@@ -420,7 +420,7 @@
         if ( p == q )
             return real.infinity;
         int intpart = cast(int)(p);
-        real sgngam = 1;
+        real sgngam = 1.0L;
         if ( (intpart & 1) == 0 )
             sgngam = -1;
         z = q - p;