• 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/gnuradio/0003-fix_compilation_in_gcc-6.patch
Gwenhael Goavec-MerouGwenhael Goavec-Merou committed 87a49fbacea09 Aug 2016
Raw file
Source viewDiff to previous
 
1
commit a1cf11937665392bcfa223a5095ff903eb44c69b
2
Author: Jaroslav #karvada <jskarvad@redhat.com>
3
Date:   Fri Feb 12 18:29:13 2016 +0100
4
​
5
Backport patch from
6
http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/a1cf11937665392bcfa223a5095ff903eb44c69b
7
​
8
Fix compilation in gcc-6
9
        
10
Signed-off-by: Jaroslav #karvada <jskarvad@redhat.com>
11
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
12
---
13
diff --git a/gr-fec/include/gnuradio/fec/polar_decoder_common.h b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
14
index b0ecb85..a39ee4f 100644
15
--- a/gr-fec/include/gnuradio/fec/polar_decoder_common.h
16
+++ b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
17
@@ -28,6 +28,10 @@
18
 #include <gnuradio/fec/generic_decoder.h>
19
 #include <gnuradio/fec/polar_common.h>
20
 
21
+#ifndef BOOST_CONSTEXPR_OR_CONST
22
+#define BOOST_CONSTEXPR_OR_CONST const
23
+#endif
24
+
25
 namespace gr {
26
   namespace fec {
27
     namespace code {
28
@@ -64,7 +68,7 @@ namespace gr {
29
         bool set_frame_size(unsigned int frame_size){return false;};
30
 
31
       private:
32
-        static const float D_LLR_FACTOR = -2.19722458f;
33
+        static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR = -2.19722458f;
34
         unsigned int d_frozen_bit_counter;
35
 
36
       protected:
  • 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.