summaryrefslogtreecommitdiff
path: root/external/libcmis/libcmis-0.4.1-unreferenced-local-variable.patch
blob: 453d1b78e751f51cab8e35b35a45fd2fcf5cbe8b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
--- src/libcmis/base-session.cxx
+++ src/libcmis/base-session.cxx
@@ -281,7 +281,7 @@
         httpRunRequest( url );
         response->getData( )->finish( );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         // If the access token is expired, we get 401 error,
         // Need to use the refresh token to get a new one.
@@ -351,7 +351,7 @@
         httpRunRequest( url, headers );
         response->getData( )->finish();
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         long status = getHttpStatus( );
         /** If we had a HTTP 417 response, this is likely to be due to some 
@@ -438,7 +438,7 @@
         httpRunRequest( url, headers, redirect );
         response->getData( )->finish();    
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         
         long status = getHttpStatus( );
@@ -495,7 +495,7 @@
     {
         httpRunRequest( url );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         // If the access token is expired, we get 401 error,
         // Need to use the refresh token to get a new one.
--- src/libcmis/oauth2-handler.cxx
+++ src/libcmis/oauth2-handler.cxx
@@ -104,7 +104,7 @@
         resp = m_session->httpPostRequest ( m_data->getTokenUrl(), is, 
                                         "application/x-www-form-urlencoded" );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         throw libcmis::Exception(
                 "Couldn't get tokens from the authorization code ");
@@ -131,7 +131,7 @@
         resp = m_session->httpPostRequest( m_data->getTokenUrl( ), is,
                                            "application/x-www-form-urlencoded" );
     }
-    catch (const CurlException& e )
+    catch (const CurlException& )
     {
         throw libcmis::Exception( "Couldn't refresh token ");
     }
--- src/libcmis/oauth2-providers.cxx
+++ src/libcmis/oauth2-providers.cxx
@@ -44,7 +44,7 @@
     {
         res = session->httpGetRequest( authUrl )->getStream( )->str( );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         return string( );
     }
@@ -65,7 +65,7 @@
         loginRes = session->httpPostRequest ( loginLink, loginIs, CONTENT_TYPE )
                         ->getStream( )->str( );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         return string( );
     }
@@ -105,7 +105,7 @@
     {
         res = session->httpGetRequest( authUrl )->getStream( )->str( );
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         return string( );
     }
@@ -131,7 +131,7 @@
         // Alfresco code is in the redirect link
         resp = session->httpPostRequest( loginLink, loginIs, CONTENT_TYPE, false ); 
     }
-    catch ( const CurlException& e )
+    catch ( const CurlException& )
     {
         return string( );
     }