mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 10:49:24 +00:00
add comments about warnings
This commit is contained in:
parent
6a250b099f
commit
f4436f7bb8
@ -154,6 +154,10 @@ int
|
|||||||
ospf_sock_init (void)
|
ospf_sock_init (void)
|
||||||
{
|
{
|
||||||
int ospf_sock;
|
int ospf_sock;
|
||||||
|
/*
|
||||||
|
* XXX warning: unused variable `tos'
|
||||||
|
* tos should be ifdefed similarly to usage
|
||||||
|
*/
|
||||||
int ret, tos, hincl = 1;
|
int ret, tos, hincl = 1;
|
||||||
|
|
||||||
if ( ospfd_privs.change (ZPRIVS_RAISE) )
|
if ( ospfd_privs.change (ZPRIVS_RAISE) )
|
||||||
|
@ -223,6 +223,7 @@ ospf_opaque_type_name (u_char opaque_type)
|
|||||||
default:
|
default:
|
||||||
if (OPAQUE_TYPE_RANGE_UNASSIGNED (opaque_type))
|
if (OPAQUE_TYPE_RANGE_UNASSIGNED (opaque_type))
|
||||||
name = "Unassigned";
|
name = "Unassigned";
|
||||||
|
/* XXX warning: comparison is always true due to limited range of data type */
|
||||||
else if (OPAQUE_TYPE_RANGE_RESERVED (opaque_type))
|
else if (OPAQUE_TYPE_RANGE_RESERVED (opaque_type))
|
||||||
name = "Private/Experimental";
|
name = "Private/Experimental";
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user