File: gnukfreebsd_linker_warnings.diff

package info (click to toggle)
qtbase-opensource-src 5.11.3%2Bdfsg1-1%2Bdeb10u5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 313,804 kB
  • sloc: cpp: 1,831,962; ansic: 318,856; xml: 113,585; python: 9,691; java: 7,209; asm: 4,023; perl: 2,151; sh: 1,790; yacc: 1,733; lex: 1,197; javascript: 469; makefile: 301; objc: 70
file content (32 lines) | stat: -rw-r--r-- 1,386 bytes parent folder | download
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
27
28
29
30
31
32
Description: catch linker warnings in some config tests
 Without this, qmake wrongly thinks that the tests succeed, for example:
 .
 ./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
 test config.corelib.tests.futimens succeeded
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2017-12-07

--- a/config.tests/unix/futimens/futimens.pro
+++ b/config.tests/unix/futimens/futimens.pro
@@ -4,3 +4,4 @@ SOURCES += futimens.cpp
 # targets. This simplifies the logic at the call site dramatically, as it isn't
 # strictly needed compared to futimes().
 darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability
+QMAKE_LFLAGS += -Wl,--fatal-warnings
--- a/config.tests/unix/getentropy/getentropy.pro
+++ b/config.tests/unix/getentropy/getentropy.pro
@@ -1 +1,2 @@
 SOURCES = getentropy.cpp
+QMAKE_LFLAGS += -Wl,--fatal-warnings
--- a/src/corelib/configure.json
+++ b/src/corelib/configure.json
@@ -254,6 +254,7 @@
             "label": "O_CLOEXEC",
             "type": "compile",
             "test": {
+                "qmake": "QMAKE_LFLAGS += -Wl,--fatal-warnings",
                 "head": "#define _GNU_SOURCE 1",
                 "include": [ "sys/types.h", "sys/socket.h", "fcntl.h", "unistd.h" ],
                 "main": [