aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/libxcomp/files/use-const-char-pointer.patch
blob: 735e2e3a731223e3234d6c8bd550262e3e570724 (plain)
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
33
34
35
Index: nxcomp/Loop.cpp
===================================================================
--- nxcomp.orig/Loop.cpp
+++ nxcomp/Loop.cpp
@@ -10979,7 +10979,7 @@ int ParsePackOption(const char *opt)
                                       packMethod == PACK_LOSSLESS ||
                                           packMethod == PACK_ADAPTIVE)
   {
-    char *dash = rindex(opt, '-');
+    const char *dash = rindex(opt, '-');
 
     if (dash != NULL && strlen(dash) == 2 &&
             *(dash + 1) >= '0' && *(dash + 1) <= '9')
Index: nxcomp/configure.in
===================================================================
--- nxcomp.orig/configure.in
+++ nxcomp/configure.in
@@ -68,7 +68,7 @@ case "${gcc_version}" in
         ;;
 esac
 
-AC_MSG_CHECKING([whether compiler accepts -Wmissing-declarations and -Wnested-externs])
+AC_MSG_CHECKING([whether compiler accepts -Wmissing-declarations])
 gcc_version=`${CC} --version | grep 'gcc (GCC) [[3-4]].' | head -n 1`
 case "${gcc_version}" in
      gcc*)
@@ -77,7 +77,7 @@ case "${gcc_version}" in
 
      *)
         AC_MSG_RESULT([yes])
-        CXXFLAGS="$CXXFLAGS -Wmissing-declarations -Wnested-externs"
+        CXXFLAGS="$CXXFLAGS -Wmissing-declarations"
         ;;
 esac