Print this page
9724 qede needs updates for newer GCC

@@ -31,10 +31,14 @@
 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */
 
+/*
+ * Copyright 2018 Joyent, Inc.
+ */
+
 #include "bcm_osal.h"
 #include "ecore.h"
 #include "ecore_sp_commands.h"
 #include "ecore_dcbx.h"
 #include "ecore_cxt.h"

@@ -239,21 +243,19 @@
                            bool enable, u8 prio, u8 tc,
                            enum dcbx_protocol_type type)
 {
         enum ecore_pci_personality personality;
         enum dcbx_protocol_type id;
-        char *name;
         int i;
 
         for (i = 0; i < OSAL_ARRAY_SIZE(ecore_dcbx_app_update); i++) {
                 id = ecore_dcbx_app_update[i].id;
 
                 if (type != id)
                         continue;
 
                 personality = ecore_dcbx_app_update[i].personality;
-                name = ecore_dcbx_app_update[i].name;
 
                 ecore_dcbx_set_params(p_data, p_hwfn, enable,
                                       prio, tc, type, personality);
         }
 }

@@ -997,11 +999,11 @@
                 ecore_dcbx_get_dscp_params(p_hwfn, p_ptt,
                                            &p_hwfn->p_dcbx_info->get);
 
                 rc = ecore_dcbx_process_mib_info(p_hwfn);
                 if (!rc) {
-                        bool enabled;
+                        bool enabled __unused;
 
                         /* reconfigure tcs of QM queues according
                          * to negotiation results
                          */
                         ecore_qm_reconf(p_hwfn, p_ptt);