~ubuntu-branches/ubuntu/utopic/trousers/utopic

« back to all changes in this revision

Viewing changes to debian/patches/04-gcc46.patch

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-06-18 22:22:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120618222221-m6xg5y53k5poezvq
Tags: 0.3.9-1
* Imported Upstream version 0.3.9
* Refreshed Debian patches
* Removed patch 04-gcc46.patch, not required anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Author: Thorsten Alteholz <debian@alteholz.de>
2
 
Description: Make it compilable with gcc4.6
3
 
 
4
 
Index: trousers-0.3.5/src/tcs/rpc/tcstp/rpc_evlog.c
5
 
===================================================================
6
 
--- trousers-0.3.5.orig/src/tcs/rpc/tcstp/rpc_evlog.c   2011-08-16 19:35:38.000000000 +0200
7
 
+++ trousers-0.3.5/src/tcs/rpc/tcstp/rpc_evlog.c        2011-08-16 19:56:46.000000000 +0200
8
 
@@ -26,7 +26,6 @@
9
 
 #include "tcs_utils.h"
10
 
 #include "rpc_tcstp_tcs.h"
11
 
 
12
 
-
13
 
 TSS_RESULT
14
 
 tcs_wrap_GetPcrEvent(struct tcsd_thread_data *data)
15
 
 {
16
 
@@ -83,6 +82,8 @@
17
 
 
18
 
        data->comm.hdr.u.result = result;
19
 
 
20
 
+       if (totalSize==0){ }; /* calm gcc46 */
21
 
+
22
 
        return TSS_SUCCESS;
23
 
 }
24
 
 
25
 
Index: trousers-0.3.5/src/tspi/obj_tpm.c
26
 
===================================================================
27
 
--- trousers-0.3.5.orig/src/tspi/obj_tpm.c      2011-08-16 19:00:07.000000000 +0200
28
 
+++ trousers-0.3.5/src/tspi/obj_tpm.c   2011-08-16 19:01:34.000000000 +0200
29
 
@@ -463,6 +463,8 @@
30
 
        struct obj_list *list = &tpm_list;
31
 
        struct tr_tpm_obj *tpm;
32
 
 
33
 
+       if (prev==NULL){ }; /* calm gcc46 */
34
 
+
35
 
        pthread_mutex_lock(&list->lock);
36
 
 
37
 
        for (obj = list->head; obj; prev = obj, obj = obj->next) {
38
 
Index: trousers-0.3.5/src/tspi/obj_encdata.c
39
 
===================================================================
40
 
--- trousers-0.3.5.orig/src/tspi/obj_encdata.c  2011-08-16 19:09:41.000000000 +0200
41
 
+++ trousers-0.3.5/src/tspi/obj_encdata.c       2011-08-16 19:10:08.000000000 +0200
42
 
@@ -431,6 +431,8 @@
43
 
        struct obj_list *list = &encdata_list;
44
 
        struct tr_encdata_obj *encdata;
45
 
 
46
 
+       if (prev==NULL){ }; /* calm gcc46 */
47
 
+
48
 
        pthread_mutex_lock(&list->lock);
49
 
 
50
 
        for (obj = list->head; obj; prev = obj, obj = obj->next) {
51
 
Index: trousers-0.3.5/src/tspi/obj_rsakey.c
52
 
===================================================================
53
 
--- trousers-0.3.5.orig/src/tspi/obj_rsakey.c   2011-08-16 19:15:14.000000000 +0200
54
 
+++ trousers-0.3.5/src/tspi/obj_rsakey.c        2011-08-16 19:18:22.000000000 +0200
55
 
@@ -1726,6 +1726,8 @@
56
 
        struct tr_rsakey_obj *rsakey;
57
 
        TSS_RESULT result;
58
 
 
59
 
+       if (prev==NULL){ }; /* calm gcc46 */
60
 
+
61
 
        MUTEX_LOCK(list->lock);
62
 
 
63
 
        for (obj = list->head; obj; prev = obj, obj = obj->next) {
64
 
@@ -1899,6 +1901,8 @@
65
 
        struct obj_list *list = &rsakey_list;
66
 
        struct tr_rsakey_obj *rsakey;
67
 
 
68
 
+       if (prev==NULL){ }; /* calm gcc46 */
69
 
+
70
 
        MUTEX_LOCK(list->lock);
71
 
 
72
 
        for (obj = list->head; obj; prev = obj, obj = obj->next) {
73
 
Index: trousers-0.3.5/src/tspi/obj_nv.c
74
 
===================================================================
75
 
--- trousers-0.3.5.orig/src/tspi/obj_nv.c       2011-08-16 19:21:02.000000000 +0200
76
 
+++ trousers-0.3.5/src/tspi/obj_nv.c    2011-08-16 19:26:22.000000000 +0200
77
 
@@ -470,6 +470,8 @@
78
 
        offset = offset + sizeof(UINT16) + pcrread_sizeOfSelect + sizeof(TPM_LOCALITY_SELECTION);
79
 
        memcpy(*data, nv_data_public + offset, sizeof(TPM_COMPOSITE_HASH));
80
 
 
81
 
+       if (pcrwrite_sizeOfSelect==0){ }; /* calm gcc46 */
82
 
+
83
 
        return result;
84
 
 }
85
 
 
86
 
Index: trousers-0.3.5/src/tspi/obj_delfamily.c
87
 
===================================================================
88
 
--- trousers-0.3.5.orig/src/tspi/obj_delfamily.c        2011-08-16 19:28:52.000000000 +0200
89
 
+++ trousers-0.3.5/src/tspi/obj_delfamily.c     2011-08-16 19:29:13.000000000 +0200
90
 
@@ -90,6 +90,8 @@
91
 
        struct obj_list *list = &delfamily_list;
92
 
        struct tr_delfamily_obj *delfamily;
93
 
 
94
 
+       if (prev==NULL){ }; /* calm gcc46 */
95
 
+
96
 
        pthread_mutex_lock(&list->lock);
97
 
 
98
 
        *hFamily = NULL_HDELFAMILY;
99
 
Index: trousers-0.3.5/src/tspi/obj_migdata.c
100
 
===================================================================
101
 
--- trousers-0.3.5.orig/src/tspi/obj_migdata.c  2011-08-16 19:31:38.000000000 +0200
102
 
+++ trousers-0.3.5/src/tspi/obj_migdata.c       2011-08-16 19:32:17.000000000 +0200
103
 
@@ -363,6 +363,8 @@
104
 
        BYTE *tmpMsaList;
105
 
        TSS_RESULT result = TSS_SUCCESS;
106
 
 
107
 
+       if (result==TSS_SUCCESS){ }; /* calm gcc46 */
108
 
+
109
 
        if ((obj = obj_list_get_obj(&migdata_list, hMigData)) == NULL)
110
 
                return TSPERR(TSS_E_INVALID_HANDLE);
111
 
 
112
 
@@ -482,6 +484,8 @@
113
 
        UINT64 offset;
114
 
        TSS_RESULT result = TSS_SUCCESS;
115
 
 
116
 
+       if (result==TSS_SUCCESS){ }; /* calm gcc46 */
117
 
+
118
 
        if ((obj = obj_list_get_obj(&migdata_list, hMigData)) == NULL)
119
 
                return TSPERR(TSS_E_INVALID_HANDLE);
120