Sometimes, in PL SQL you want to add a parameter to a Package, Function or Procedure in order to prepare future functionality. For example:
create or replace function doGetMyAccountMoney( Type_Of_Currency IN char := 'EUR') return number is Result number(12,2); begin Result := 10000; IF char <> 'EUR' THEN -- ERROR NOT IMPLEMENTED YET END IF; return(Result); end doGetMyAccountMoney;also
It can lead to lots of warnings like
Compilation errors for FUNCTION APPUEMP_PRAC.DOGETMYACCOUNTMONEY Error: Hint: Parameter 'Currency' is declared but never used in 'doGetMyAccountMoney' Line: 1
What would be the best way to avoid those warnings?
I believe that this is controlled by the parameter PLSQL_WARNINGS, documented for 10gR2 here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams166.htm#REFRN10249