]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: Only test CONFDATE when VERSION_TYPE_DEV defined
authorLou Berger <lberger@labn.net>
Tue, 3 Apr 2018 17:44:46 +0000 (13:44 -0400)
committerLou Berger <lberger@labn.net>
Tue, 3 Apr 2018 17:44:46 +0000 (13:44 -0400)
Signed-off-by: Lou Berger <lberger@labn.net>
bgpd/bgp_vty.c
lib/linklist.h
lib/stream.h
lib/vty.h
lib/zclient.h
ospf6d/ospf6_top.c
ospfd/ospf_vty.c

index 63f3ccfc9142ba3ce1bddf7510eedd4e1653ce07..874af821b12a350e082913c4cac539c958a2791a 100644 (file)
@@ -8299,7 +8299,7 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, u_char use_json,
                        uptime -= p->uptime;
                        epoch_tbuf = time(NULL) - uptime;
 
-#if CONFDATE > 20200101
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20200101
                        CPP_NOTICE("bgpTimerUp should be deprecated and can be removed now");
 #endif
                        /*
index 8a43fbe64b1f34b8ae06696d303f48b289aec808..fa83183161e68d99cac09135defba3c9aebef6c2 100644 (file)
@@ -84,7 +84,7 @@ extern void *listnode_head(struct list *);
  * and remove list_delete_original and the list_delete #define
  * Additionally remove list_free entirely
  */
-#if CONFDATE > 20181001
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20181001
 CPP_NOTICE("list_delete without double pointer is deprecated, please fixup")
 #endif
 extern void list_delete_and_null(struct list **);
index 4d387f9564a49c6a9f2c24ac564ab53f585bd823..0aece965d57b618536bb5ccef7e90b2d922bf888 100644 (file)
@@ -123,7 +123,7 @@ struct stream_fifo {
 #define STREAM_CONCAT_REMAIN(S1, S2, size) ((size) - (S1)->endp - (S2)->endp)
 
 /* deprecated macros - do not use in new code */
-#if CONFDATE > 20181128
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20181128
 CPP_NOTICE("lib: time to remove deprecated stream.h macros")
 #endif
 #define STREAM_PNT(S)   stream_pnt((S))
index 3b75afb02ceec496818ba1ee5ebd653b4c918555..20105049ccf4e59bd26f30a6987bf98ce1ec6929 100644 (file)
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -189,7 +189,7 @@ struct vty_arg {
 /* Integrated configuration file. */
 #define INTEGRATE_DEFAULT_CONFIG "frr.conf"
 
-#if CONFDATE > 20180401
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180401
 CPP_NOTICE("It's probably time to remove VTY_NEWLINE compatibility foo.")
 #endif
 
index df9e5f438d001db6630f5c1af6e3d9a3d023b7a0..a232f322c47c8d639c159f8e95793c4b6e77127d 100644 (file)
@@ -353,7 +353,7 @@ struct zclient_options {
 /* Prototypes of zebra client service functions. */
 extern struct zclient *zclient_new(struct thread_master *);
 
-#if CONFDATE > 20181101
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20181101
 CPP_NOTICE("zclient_new_notify can take over or zclient_new now");
 #endif
 
@@ -422,7 +422,7 @@ extern struct interface *zebra_interface_vrf_update_read(struct stream *s,
 extern void zebra_interface_if_set_value(struct stream *, struct interface *);
 extern void zebra_router_id_update_read(struct stream *s, struct prefix *rid);
 
-#if CONFDATE > 20180823
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180823
 CPP_NOTICE("zapi_ipv4_route, zapi_ipv6_route, zapi_ipv4_route_ipv6_nexthop as well as the zapi_ipv4 and zapi_ipv6 data structures should be removed now");
 #endif
 
index 5d1144335be4c27b55d1f6a4bdf96f0017e59167..3d938b2180954a9d83ef8ab8f02e5ef4457068cb 100644 (file)
@@ -363,7 +363,7 @@ DEFUN(no_ospf6_router_id,
        return CMD_SUCCESS;
 }
 
-#if CONFDATE > 20180828
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180828
 CPP_NOTICE("ospf6: `router-id A.B.C.D` deprecated 2017/08/28")
 #endif
 ALIAS_HIDDEN(ospf6_router_id,
@@ -372,7 +372,7 @@ ALIAS_HIDDEN(ospf6_router_id,
             "Configure OSPF6 Router-ID\n"
             V4NOTATION_STR)
 
-#if CONFDATE > 20180828
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180828
 CPP_NOTICE("ospf6: `no router-id A.B.C.D` deprecated 2017/08/28")
 #endif
 ALIAS_HIDDEN(no_ospf6_router_id,
index 1276f5477c815f606a0ec26d5a80286b6542c6aa..7eb68775d1c7f50b806748fd7a44145d52491cfa 100644 (file)
@@ -2337,7 +2337,7 @@ DEFUN (no_ospf_timers_lsa_min_arrival,
        return CMD_SUCCESS;
 }
 
-#if CONFDATE > 20180708
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180708
 CPP_NOTICE("ospf: `timers lsa arrival (0-1000)` deprecated 2017/07/08")
 #endif
 ALIAS_HIDDEN (ospf_timers_lsa_min_arrival,
@@ -2348,7 +2348,7 @@ ALIAS_HIDDEN (ospf_timers_lsa_min_arrival,
               "ospf minimum arrival interval delay\n"
               "delay (msec) between accepted lsas\n");
 
-#if CONFDATE > 20180708
+#if defined(VERSION_TYPE_DEV) && CONFDATE > 20180708
 CPP_NOTICE("ospf: `no timers lsa arrival (0-1000)` deprecated 2017/07/08")
 #endif
 ALIAS_HIDDEN (no_ospf_timers_lsa_min_arrival,