{"action":"created","issue":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/2576","repository_url":"https://api.github.com/repos/KratosMultiphysics/Kratos","labels_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/2576/labels{/name}","comments_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/2576/comments","events_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/2576/events","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/2576","id":344795052,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTA0MDA2","number":2576,"title":"[core] Redefinition of macro warning fixed","user":{"login":"maceligueta","id":8899917,"node_id":"MDQ6VXNlcjg4OTk5MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8899917?v=4","gravatar_id":"","url":"https://api.github.com/users/maceligueta","html_url":"https://github.com/maceligueta","followers_url":"https://api.github.com/users/maceligueta/followers","following_url":"https://api.github.com/users/maceligueta/following{/other_user}","gists_url":"https://api.github.com/users/maceligueta/gists{/gist_id}","starred_url":"https://api.github.com/users/maceligueta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maceligueta/subscriptions","organizations_url":"https://api.github.com/users/maceligueta/orgs","repos_url":"https://api.github.com/users/maceligueta/repos","events_url":"https://api.github.com/users/maceligueta/events{/privacy}","received_events_url":"https://api.github.com/users/maceligueta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-26T10:56:09Z","updated_at":"2018-07-26T12:52:05Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/pulls/2576","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/2576","diff_url":"https://github.com/KratosMultiphysics/Kratos/pull/2576.diff","patch_url":"https://github.com/KratosMultiphysics/Kratos/pull/2576.patch"},"body":"I tried to reorder the includes, as I usually do with this type of warnings, but I had no success, due to recursive dependency.\r\nThis was the warning:\r\n```\r\nIn file included from /usr/include/python2.7/Python.h:8:0,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/detail/common.h:111,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/pytypes.h:12,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/cast.h:13,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/attr.h:13,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/pybind11.h:43,\r\n                 from /home/maceli/kratos/kratos/utilities/python_function_callback_utility.h:20,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.h:28,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.cpp:20:\r\n/usr/include/python2.7/pyconfig.h:1193:0: warning: \"_POSIX_C_SOURCE\" redefined\r\n #define _POSIX_C_SOURCE 200112L\r\n ^\r\nIn file included from /usr/include/c++/5/x86_64-suse-linux/bits/os_defines.h:39:0,\r\n                 from /usr/include/c++/5/x86_64-suse-linux/bits/c++config.h:2255,\r\n                 from /usr/include/c++/5/string:38,\r\n                 from /home/maceli/kratos/kratos/includes/model_part.h:22,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.h:25,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.cpp:20:\r\n/usr/include/features.h:225:0: note: this is the location of the previous definition\r\n # define _POSIX_C_SOURCE 200809L\r\n ^\r\nIn file included from /usr/include/python2.7/Python.h:8:0,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/detail/common.h:111,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/pytypes.h:12,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/cast.h:13,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/attr.h:13,\r\n                 from /home/maceli/kratos/external_libraries/pybind11/pybind11.h:43,\r\n                 from /home/maceli/kratos/kratos/utilities/python_function_callback_utility.h:20,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.h:28,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.cpp:20:\r\n/usr/include/python2.7/pyconfig.h:1215:0: warning: \"_XOPEN_SOURCE\" redefined\r\n #define _XOPEN_SOURCE 600\r\n ^\r\nIn file included from /usr/include/c++/5/x86_64-suse-linux/bits/os_defines.h:39:0,\r\n                 from /usr/include/c++/5/x86_64-suse-linux/bits/c++config.h:2255,\r\n                 from /usr/include/c++/5/string:38,\r\n                 from /home/maceli/kratos/kratos/includes/model_part.h:22,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.h:25,\r\n                 from /home/maceli/kratos/kratos/processes/assign_scalar_field_to_conditions_process.cpp:20:\r\n/usr/include/features.h:166:0: note: this is the location of the previous definition\r\n # define _XOPEN_SOURCE 700\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/comments/408086754","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/2576#issuecomment-408086754","issue_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/2576","id":408086754,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODA4Njc1NA==","user":{"login":"maceligueta","id":8899917,"node_id":"MDQ6VXNlcjg4OTk5MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8899917?v=4","gravatar_id":"","url":"https://api.github.com/users/maceligueta","html_url":"https://github.com/maceligueta","followers_url":"https://api.github.com/users/maceligueta/followers","following_url":"https://api.github.com/users/maceligueta/following{/other_user}","gists_url":"https://api.github.com/users/maceligueta/gists{/gist_id}","starred_url":"https://api.github.com/users/maceligueta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maceligueta/subscriptions","organizations_url":"https://api.github.com/users/maceligueta/orgs","repos_url":"https://api.github.com/users/maceligueta/repos","events_url":"https://api.github.com/users/maceligueta/events{/privacy}","received_events_url":"https://api.github.com/users/maceligueta/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T12:52:05Z","updated_at":"2018-07-26T12:52:05Z","author_association":"MEMBER","body":"With the change I made, the warning disappears."}}
{"actor":{"display_login":"maceligueta"}}