Fixed warnings.

Change-Id: Iadb97396f173971c8257d9689fb7d2e1e76053fc
Merge topic 'numpy-interface-3' into next

06c93a38 Fixed warnings.