X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fthreads.texi;h=451eff8ee2cc73bff7901efe24d077aba5a2d021;hb=ba48df561d04272b8cd819bf24c9cbde0f4bb085;hp=3cb049a2cc96d56ad8815cf95d5ef74d7cc9d657;hpb=8c4ae693392eefac69201fd0e518ec272fe6ad25;p=pintos-anon diff --git a/doc/threads.texi b/doc/threads.texi index 3cb049a..451eff8 100644 --- a/doc/threads.texi +++ b/doc/threads.texi @@ -471,6 +471,18 @@ problems. There are other, equally correct solutions that do not require interrupt manipulation. However, if you do manipulate interrupts and @strong{correctly and fully document it} in your design document, we will allow limited use of interrupt disabling. + +@item +@b{What does ``warning: no previous prototype for `@var{function}'' +mean?} + +It means that you defined a non-@code{static} function without +preceding it by a prototype. Because non-@code{static} functions are +intended for use by other @file{.c} files, for safety they should be +prototyped in a header file included before their definition. To fix +the problem, add a prototype in a header file that you include, or, if +the function isn't actually used by other @file{.c} files, make it +@code{static}. @end enumerate @item Alarm Clock FAQs