Lisp HUG Maillist Archive

Warning suppression

Hi all,

Every time I compile a file with a defpackage using C-c C-k I got the
following warning:

warning: Using DEFPACKAGE to modify #<The MEDIAIMPORT.UI package, 113/256 internal, 0/4 external>.

How can I set to ignore it or suppress it?

For example in C/C++ you can always suppress particular types of warnings..

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Warning suppression

Unable to parse email body. Email id is 13770

Re: Warning suppression

Hi,

Thanks, it is exactly what I want!

Madhu <enometh@meer.net> writes:

> * Alexey Veretennikov <m2wpo6adwv.fsf@Mac-34363bcb361c.lan> :
> Wrote on Sat, 09 Apr 2016 19:29:52 +0200:
>
> | Every time I compile a file with a defpackage using C-c C-k I got
> | the following warning:
> |
> | warning: Using DEFPACKAGE to modify #<The MEDIAIMPORT.UI package,
> | 113/256 internal, 0/4 external>.
>
> Are you sure you want to get rid of the warning?
>
> | How can I set to ignore it or suppress it?
>
> See hcl:*handle-existing-defpackage* (from the Lispworks User Guide
> documentation for defpackage), you'd probably set it to '(:modify)
>
> http://www.lispworks.com/documentation/lw61/LW/html/lw-803.htm
> http://www.lispworks.com/documentation/lw61/LW/html/lw-640.htm
>
> ---Madhu
>
> | For example in C/C++ you can always suppress particular types of
> | warnings..
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Warning suppression

Unable to parse email body. Email id is 13772

Re: Warning suppression

Hi,

Thanks, I've read about it and understand the danger.
However I follow the development model 1 package per file, and use
cl-annot to mark exported functions. Therefore I just add functions I
need and recompile the file with C-c C-k, so I know what the package could be
changed, so this warning makes no real help to me.

Madhu <enometh@meer.net> writes:

> *  Alexey Veretennikov <txm.fourier@gmail.com> <m2twj9gb6d.fsf@Mac-34363bcb361c.lan>
> Wrote on Sun, 10 Apr 2016 09:44:42 +0200
>
> |Thanks, it is exactly what I want!
> |
> |Madhu <enometh@meer.net> writes:
> |
> |> * Alexey Veretennikov <m2wpo6adwv.fsf@Mac-34363bcb361c.lan> :
> |> Wrote on Sat, 09 Apr 2016 19:29:52 +0200:
> |>
> |> | Every time I compile a file with a defpackage using C-c C-k I got
> |> | the following warning:
> |> |
> |> | warning: Using DEFPACKAGE to modify #<The MEDIAIMPORT.UI package,
> |> | 113/256 internal, 0/4 external>.
> |>
> |> Are you sure you want to get rid of the warning?
> |>
> |> | How can I set to ignore it or suppress it?
> |>
> |> See hcl:*handle-existing-defpackage* (from the Lispworks User Guide
> |> documentation for defpackage), you'd probably set it to '(:modify)
> |>
> |> http://www.lispworks.com/documentation/lw61/LW/html/lw-803.htm
> |> http://www.lispworks.com/documentation/lw61/LW/html/lw-640.htm
> |>
> |> ---Madhu
> |>
> |> | For example in C/C++ you can always suppress particular types of
> |> | warnings..
>
> Hello, maybe I did not emphasise this enough: this warning would not
> be printed by lispworks unless it detects that "the named package
> already exists and is in a different state to that described by the
> defpackage form."  So if you are not making any changes to the
> defpackage form, this warning should not be printed at all.  If it is
> being printed, it likely indicates a problem or a bug, so you should
> check your defpackage forms, maybe for multiple defpackage forms.
> ---Madhu
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Warning suppression

Alexey Veretennikov <txm.fourier@gmail.com> writes:

> Thanks, I've read about it and understand the danger.
> However I follow the development model 1 package per file, and use
> cl-annot to mark exported functions. Therefore I just add functions I
> need and recompile the file with C-c C-k, so I know what the package could be
> changed, so this warning makes no real help to me.

In this situation, I would advise you to use your own defpackage macro.

If your software is AGPL, you can use the one in:

https://git.framasoft.org/com-informatimago/com-informatimago/blob/master/common-lisp/lisp-reader/package-mac.lisp#L159
https://git.framasoft.org/com-informatimago/com-informatimago/blob/master/common-lisp/lisp-reader/package-fun.lisp#L1531


-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:32 UTC