Skip to content

Commit

Permalink
test: fix CFLAGS and LDFLAGS warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
  • Loading branch information
jajanusz committed Jul 10, 2018
1 parent a48cedd commit de100b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/cmocka/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ if BUILD_XTENSA
LOG_COMPILER = xt-run
endif

AM_CFLAGS = \
override AM_CFLAGS := \
$(filter-out -nostdlib,$(AM_CFLAGS)) \
$(SOF_INCDIR)

AM_LDFLAGS =
override AM_LDFLAGS := \
$(filter-out -nostdlib,$(AM_LDFLAGS))

if HAVE_CMOCKA_PREFIX
AM_CFLAGS += -I$(CMOCKA_PREFIX)/include
Expand All @@ -26,9 +28,6 @@ if BUILD_HOST
AM_CFLAGS += -I../../src/arch/host/include
endif

CFLAGS := $(filter-out -nostdlib,$(CFLAGS))
LDFLAGS := $(filter-out -nostdlib,$(LDFLAGS))

LDADD = -lcmocka

# memory allocator test
Expand Down
3 changes: 3 additions & 0 deletions test/cmocka/src/lib/alloc/mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* Author: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
* Janusz Jankowski <janusz.jankowski@linux.intel.com>
*/

#include <stdint.h>
Expand All @@ -38,11 +39,13 @@ struct dma_sg_config;
int dma_copy_from_host(struct dma_copy *dc, struct dma_sg_config *host_sg,
int32_t host_offset, void *local_ptr, int32_t size)
{
return 0;
}

int dma_copy_to_host(struct dma_copy *dc, struct dma_sg_config *host_sg,
int32_t host_offset, void *local_ptr, int32_t size)
{
return 0;
}

void _trace_event_mbox_atomic(uint32_t e)
Expand Down

0 comments on commit de100b7

Please sign in to comment.