]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/picomodel/pm_terrain.c
q3map2 is now waring free
[xonotic/netradiant.git] / libs / picomodel / pm_terrain.c
index a54a834867110cf76d136a20649998293180a2d6..b31671193f60ee059087ae3c3d7c74c813e5de95 100644 (file)
@@ -302,11 +302,8 @@ static int _terrain_canload( PM_PARAMS_CANLOAD )
        picoParser_t    *p;
        
        
-       /* keep the friggin compiler happy */
-       *fileName = *fileName;
-       
        /* create pico parser */
-       p = _pico_new_parser( (picoByte_t*) buffer, bufSize );
+       p = _pico_new_parser( (const picoByte_t*) buffer, bufSize );
        if( p == NULL )
                return PICO_PMV_ERROR_MEMORY;
        
@@ -355,11 +352,8 @@ static picoModel_t *_terrain_load( PM_PARAMS_LOAD )
        picoColor_t             color;
        
        
-       /* keep the friggin compiler happy */
-       *fileName = *fileName;
-       
        /* create pico parser */
-       p = _pico_new_parser( (picoByte_t*) buffer, bufSize );
+       p = _pico_new_parser( (const picoByte_t*) buffer, bufSize );
        if( p == NULL )
                return NULL;