mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix most warnings from Sparse
git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include "cross.h"
|
||||
|
||||
|
||||
unsigned char *dict = 0;
|
||||
unsigned char *dict = NULL;
|
||||
ucell *last;
|
||||
cell dicthead = 0;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ extern ucell *trampoline;
|
||||
* point behind the pointer.
|
||||
*/
|
||||
static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 };
|
||||
ucell *trampoline = t;
|
||||
static ucell *trampoline = t;
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DEBUG_INTERPRETER
|
||||
@@ -287,7 +287,7 @@ static void doplusloop(void)
|
||||
#ifndef FCOMPILER
|
||||
static ucell get_myself(void)
|
||||
{
|
||||
static ucell **myself = 0;
|
||||
static ucell **myself = NULL;
|
||||
if( !myself )
|
||||
myself = (ucell**)findword("my-self") + 1;
|
||||
return (*myself && **myself) ? (ucell)**myself : 0;
|
||||
|
||||
Reference in New Issue
Block a user