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