• 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/jack2/0005-gcc7.patch
Bernd KuhlsBernd Kuhls committed 50ace0bcc3106 Aug 2017
Raw file
Source viewDiff to previous
 
1
From f7bccdca651592cc4082b28fd4a01ed6ef8ab655 Mon Sep 17 00:00:00 2001
2
From: Kjetil Matheussen <k.s.matheussen@notam02.no>
3
Date: Sat, 15 Jul 2017 13:21:59 +0200
4
Subject: [PATCH] Tests: Fix compilation with gcc7
5
​
6
Fixes
7
../tests/test.cpp: In function ‘int process4(jack_nframes_t, void*)’:
8
../tests/test.cpp:483:73: error: call of overloaded ‘abs(jack_nframes_t)’ is ambiguous
9
  if (delta_time > 0  && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
10
​
11
Downloaded from upstream commit
12
https://github.com/jackaudio/jack2/commit/f7bccdca651592cc4082b28fd4a01ed6ef8ab655
13
​
14
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
15
---
16
 tests/test.cpp | 2 +-
17
 1 file changed, 1 insertion(+), 1 deletion(-)
18
​
19
diff --git a/tests/test.cpp b/tests/test.cpp
20
index 8a8a8117..d2ef9a05 100644
21
--- a/tests/test.cpp
22
+++ b/tests/test.cpp
23
@@ -479,7 +479,7 @@ int process4(jack_nframes_t nframes, void *arg)
24
    jack_nframes_t delta_time = cur_time - last_time;
25
 
26
    Log("calling process4 callback : jack_frame_time = %ld delta_time = %ld\n", cur_time, delta_time);
27
-   if (delta_time > 0  && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
28
+   if (delta_time > 0  && abs((int64_t)delta_time - (int64_t)cur_buffer_size) > (int64_t)tolerance) {
29
        printf("!!! ERROR !!! jack_frame_time seems to return incorrect values cur_buffer_size = %d, delta_time = %d tolerance %d\n", cur_buffer_size, delta_time, tolerance);
30
    }
31
 
  • 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.