• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/faketime/0001-Disable-the-non-null-compare-warning-error.patch
Romain NaourRomain Naour committed 2a1401fa92314 May 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From e85a157b51b1276c91c736d8624d9f3e876e9189 Mon Sep 17 00:00:00 2001
2
From: Andreas Rammhold <andreas@rammhold.de>
3
Date: Tue, 20 Dec 2016 19:25:32 +0100
4
Subject: [PATCH] Disable the non-null compare warning/error.
5
​
6
We rely on the provided local library definitions for the hooked
7
functions which in some cases (GCC >6) carry a non-null-attribute flag
8
which causes compile errors on `!= NULL` checks.
9
​
10
[Romain: rebase on 0.9.6]
11
(cherry picked from commit 47e958b753fc15098a2b7d0e9ef26b83ee255874)
12
Signed-off-by: Romain Naour <romain.naour@gmail.com>
13
---
14
 src/Makefile | 2 +-
15
 1 file changed, 1 insertion(+), 1 deletion(-)
16
​
17
diff --git a/src/Makefile b/src/Makefile
18
index 51634b0..bbbd476 100644
19
--- a/src/Makefile
20
+++ b/src/Makefile
21
@@ -67,7 +67,7 @@ INSTALL ?= install
22
 PREFIX ?= /usr/local
23
 LIBDIRNAME ?= /lib/faketime
24
 
25
-CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"'
26
+CFLAGS += -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"'
27
 LIB_LDFLAGS += -shared
28
 LDFLAGS += -Wl,--version-script=libfaketime.map -lpthread
29
 LDADD += -ldl -lm -lrt
30
-- 
31
2.9.3
32
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.