How to get rid of warning messages while compiling Oracle Procedure

Posted on 2011-04-24
Last Modified: 2012-05-11
I have an Oracle procedure with this line in it:
--In declaration
retval                         PLS_INTEGER;

--In Begin End block
retval := DBMS_LDAP.UNBIND_S(my_session);

I do not need to use the variable retval but is needed for calling the above unbind function.
I get warning message when compiling:
Compilation errors for ....

Error: Hint: Value assigned to 'retval' never used in MYPROCEDURE
Line: 211
Text: retval := DBMS_LDAP.UNBIND_S(my_session);

Is there any way to get rid of this error?
Question by:toooki
    LVL 4

    Accepted Solution

    Either you can use variable retval in your code say for some assignment or you can turn off the plsql warning for the database.

    Example to disable all warnings

    Author Comment

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now