
14 Nov
2007
14 Nov
'07
8:07 a.m.
On Tue, Nov 13, 2007 at 02:53:27PM -0800, David T. Perkins wrote:
In cleaning up a MIb module, it had the following imports:
IMPORTS OBJECT-TYPE FROM SNMPv2-SMI OBJECT-TYPE, IpAddress, MODULE-IDENTITY, enterprises FROM SNMPv2-SMI DisplayString, TruthValue FROM SNMPv2-TC;
With a level 5 or greater, smilint generated the warning: warning: identifier `OBJECT-TYPE' imported from module `SNMPv2-SMI' is never used
This is misleading. I was expecting the following two warnings:
- duplicate definition of "OBJECT-TYPE"
- all of the items from a module must be imported together
Have you checked the good old ASN.1 (1987) specs? I am not sure it is actually illegal to do the above. Unfortunately, it will be difficult to find the right specs and then they might be silent about this...
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 http://www.jacobs-university.de/