]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb: add declaration to Python init function
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:03:04 +0000 (14:03 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:03:04 +0000 (14:03 -0500)
commit6b3661116e7b01676299710a96f47fe06bafacec
tree1621afc14fec5aac9658efed6174dc2f82c5a9f5
parent6c2659886f7018fcca26ee0fc813bc9748fb8513
gdb: add declaration to Python init function

When I try to enable -Wmissing-declarations, I get this error:

      CXX    python/python.o
    /home/smarchi/src/binutils-gdb/gdb/python/python.c: In function ‘PyObject* init__gdb_module()’:
    /home/smarchi/src/binutils-gdb/gdb/python/python.c:1582:1: error: no previous declaration for ‘PyObject* init__gdb_module()’ [-Werror=missing-declarations]
     init__gdb_module (void)
     ^~~~~~~~~~~~~~~~

Prevent it by providing a declaration just before the definition.

gdb/ChangeLog:

* python/python.c (init__gdb_module): Add declaration.

Change-Id: I394bc691b7db624708cc4cb2cda28a56ab85a82b
gdb/ChangeLog
gdb/python/python.c