• Masahiro Yamada's avatar
    zynq: disable -Wstrict-prototypes option for ps7_init.c · 32747491
    Masahiro Yamada authored
    The files ps7_init.c and ps7_init.h are supposed to be generated by
    hw projects such as Vivado, PlanAhead and then to be copied into
    board/xilinx/zynq directory.
    
    But some prototypes in them cause annoying warning messages:
    
      CC      spl/board/xilinx/zynq/ps7_init.o
    In file included from board/xilinx/zynq/ps7_init.c:50:0:
    board/xilinx/zynq/ps7_init.h:137:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.h:138:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.h:139:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.h:145:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.c:12602:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.c:12723:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.c:12742:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.c:12761:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    board/xilinx/zynq/ps7_init.c:12854:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
    
    The prototypes should be
    
      int ps7_init(void);
      int ps7_post_config(void);
      int ps7_debug(void);
    
    rather than
    
      int ps7_init();
      int ps7_post_config();
      int ps7_debug();
    
    We do not want to be bothered because of automatically generated files.
    But we cannot touch the external projects for now.
    What we can do is to disable -Wstrict-prototypes for ps7_init.c
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Cc: Michal Simek <michal.simek@xilinx.com>
    Tested-by: default avatarMichal Simek <michal.simek@xilinx.com>
    Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
    32747491
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
snapshot.commit Loading commit data...