File: clang_FTBFS.patch

package info (click to toggle)
libjogl2-java 2.3.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 43,464 kB
  • ctags: 71,508
  • sloc: java: 218,529; ansic: 75,727; xml: 6,704; objc: 3,139; sh: 2,736; cpp: 139; awk: 46; makefile: 29
file content (16 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix FTBFS with clang instead of gcc [-Wreturn-type]
Author: Nicolas Sévelin-Radiguet <nicosr@free.fr>
Last-Update: 2014-09-02
Index: libjogl2-java/src/newt/native/bcm_vc_iv.c
===================================================================
--- libjogl2-java.orig/src/newt/native/bcm_vc_iv.c
+++ libjogl2-java/src/newt/native/bcm_vc_iv.c
@@ -357,7 +357,7 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt
    VC_RECT_T src_rect;
 
    if( 0 == display ) {
-       return 0;
+       return NULL;
    }
    dst_rect.x = x;
    dst_rect.y = y;